Giter Club home page Giter Club logo

Comments (16)

mohnish avatar mohnish commented on May 18, 2024 1

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.

mohnish avatar mohnish commented on May 18, 2024 1

@dannypernik I love and appreciate your attitude. Yes, I can point you in the right direction.

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.

dannypernik avatar dannypernik commented on May 18, 2024 1

@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/82128623/tab-groups-are-in-need-of-keyboard-accessibility?hl=en

https://support.google.com/chrome/thread/181852353/tab-groups?hl=en

image

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.

mohnish avatar mohnish commented on May 18, 2024 1

@dannypernik

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.

dannypernik avatar dannypernik commented on May 18, 2024 1

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.

dannypernik avatar dannypernik commented on May 18, 2024

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.

dannypernik avatar dannypernik commented on May 18, 2024

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.

dannypernik avatar dannypernik commented on May 18, 2024

@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.

dannypernik avatar dannypernik commented on May 18, 2024

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.

mohnish avatar mohnish commented on May 18, 2024

@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.

dannypernik avatar dannypernik commented on May 18, 2024

@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.

mohnish avatar mohnish commented on May 18, 2024

@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.

dannypernik avatar dannypernik commented on May 18, 2024

@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.

mohnish avatar mohnish commented on May 18, 2024

@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.

dannypernik avatar dannypernik commented on May 18, 2024

@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.

mohnish avatar mohnish commented on May 18, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.