Comments (16)
Hi @dannypernik 👋
I appreciate your input. I will consider this feature. Personally, I like the native functionality where the tab opens up the closed tab group. But, I also see how this is different UX from tab switch. I will think more about it and see if I can come up with a consistent UX for both the cases. I really like the idea of collapsing the tab group once the tab is out of it. 👍
from rearrange-tabs.
@dannypernik I love and appreciate your attitude. Yes, I can point you in the right direction.
- Since you've never created an extension before, I suggest getting an idea on how to do so. I found this tutorial here that might be helpful
- Chrome's Tab API that let's you handle grouping, specifically this method
- This is where we handle the commands. Introducing these commands would be done in the manifest.json
- The setup itself is documented in the README.md file
These should be good enough for you to get started on it. Hope you enjoy it. Good luck and have fun. HMU if you have any other questions. I'd definitely help you with that.
from rearrange-tabs.
@mohnish it's true that I see Chrome's default tab switching via keyboard as the biggest opportunity for improvement - and that's because your extension rearranges tabs so well ;) that said, I'd love for a tab group to collapse when a tab is moved out of it using your shortcut. I'm still interested in seeing if I can make this happen.
Furthermore, I believe there is a case to be made for adding tab group keyboard accessibility to this extension. You have already vastly improved keyboard accessibility of tabs. Why not offer an adjacent enhancement that people have wanted for a long time?
https://support.google.com/chrome/thread/181852353/tab-groups?hl=en
I feel you!! 😄 I constantly switch tabs (and do as much as possible) with the keyboard, so I currently have to choose between tab groups and keyboard shortcuts.
from rearrange-tabs.
I'd love for a tab group to collapse when a tab is moved out of it using your shortcut. I'm still interested in seeing if I can make this happen
💯 Go for it!
from rearrange-tabs.
That's wonderful and very encouraging. Thank you. I would definitely attribute Rearrange Tabs as the primary author. When I have time, I'll start with the "collapse group on exit" functionality and submit a PR, then go from there.
from rearrange-tabs.
Hi @mohnish, I was very happy to see that your extension provides some keyboard accessibility for tab groups where there is none natively. I was pleasantly surprised that moving tabs left or right will move it into a closed group (and open that group). I am also happy that moving a tab to the beginning or end of the tab list does not add it to a tab group at the beginning or end of the list.
The biggest keyboard shortcut functionality I'm currently missing is the ability to navigate into a closed tab group – without rearranging the tabs. Currently, when switching from one tab to the next with the native cmd+option+left/right on mac, closed tab groups are skipped altogether.
My desired functionality would be if I'm moving into a closed group, it would open, and if I was moving out of an opened group, it would close. I imagine this being very satisfying visually – traversing from one tab group to the next while keeping only one group open at a time.
I realize you may consider this outside of the scope of the current extension, but I think you could make a lot of people very happy by adding it. It would be incredible if you could keep the current native shortcut for navigating left/right but add traversal of tab groups.
from rearrange-tabs.
Oops, I read this three weeks ago and thought I responded. Glad you like the idea. Regarding consistent UX whether moving a tab or just moving focus, I think it makes sense that a closed group should open when entered in both cases, and an opened focused group should close when exited in both cases.
from rearrange-tabs.
@mohnish I've never created a Chrome extension but would love to attempt to contribute if you're willing to point me in the right direction.
from rearrange-tabs.
I'll see what I can do!
From this list, it appears that the default shortcut for prev/next tab (ctrl/cmd + alt + left/right arrow) can be overwritten. Are you comfortable with adding the grouping functionality to the default keyboard shortcut?
from rearrange-tabs.
@dannypernik That'll basically break the workflows of the users and we don't want that. Pick a shortcut that's a new combination. As long as it doesn't conflict with the most common shortcuts, we should be good. You can pick one initially and see how it feels over the span of development and based on that feedback, you can always update it. You'll quickly pick up the pros and cons of a particular keyboard shortcut as you use it.
from rearrange-tabs.
@mohnish ok. It's hard for me to imagine that users would want the default behavior that completely skips closed groups, but I know it would be an unexpected change for some. Unfortunately it seems that I will not be able to set ctrl/cmd + alt + left/right arrow as the custom shortcut for my own purposes. I'll find an alternative.
from rearrange-tabs.
@dannypernik In that case, use the same commands (for moving a tab left/right) and just update the functionality to behave the way you suggested.
from rearrange-tabs.
@mohnish to be clear, I'm not referring to your shortcut to move tabs, rather Chrome's shortcut to move focus between tabs. The default shortcut for moving focus disregards closed tab groups, which I personally find to be egregious:
tabs.mov
from rearrange-tabs.
@dannypernik Oh I see. It's the tab switch you were talking about. I totally misunderstood the whole thing. I see what you mean now. I don't think the extension would be the right place to implement that functionality. The extension's purpose is to Rearrange tabs. In your use case, we are just switching tabs and not really rearranging anything.
from rearrange-tabs.
@mohnish if I figured out how to handle switching tabs with groups, would I be able to fork your extension for my own use? Am I correct to think that the MIT license means I could even offer a fork of your extension in the marketplace? I don't know if I'd pursue it, but curious to get your thoughts.
from rearrange-tabs.
@dannypernik Absolutely. You can do whatever you want with the fork. In fact, I even enocourage it. All I ask is to not use the same name. Anything else is fair game. I meant to have people use the code to build something fun by themselves and that's why I used the MIT license. Go for it.
from rearrange-tabs.
Related Issues (20)
- Look into extension conversion for Safari HOT 1
- Upgrade to Manifest v3 HOT 4
- Feature Request: Make shortcuts configurable HOT 4
- Include info about configuring shortcut keys HOT 5
- New tabs move when trying to select text HOT 1
- Add a shortcut to handle tabs group HOT 1
- option-shift-left / right move tab even when overridden HOT 3
- Allow more symbols in custom shortcuts HOT 1
- Guidance to macOS user? HOT 1
- For some reason, Google Chrome has frequent crashes when this plugin is enabled HOT 8
- Note to the community
- Wrong shortcut from the address bar HOT 1
- 3.0 issues for Linux users HOT 5
- Move selected tab circular manner with 15 feb update HOT 4
- Investigate extension functionality in other browsers HOT 3
- After 3.0.0 - stopped working in linux HOT 1
- compatibility with Arc HOT 1
- Wraparound tabs stopped working after 3.0.0 HOT 3
- Feature Request: Add Pin Tab Functionality 📌 HOT 3
- Tabs no longer wrap to beginning when at the end position HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rearrange-tabs.