Code Monkey home page Code Monkey logo

Comments (10)

JordyScript avatar JordyScript commented on June 10, 2024

A few nice shortcuts would be:

  • Keyboard shortcut to set aside all tabs in a window
  • Keyboard shortcut to show/hide saved sessions/sidebar
  • Keyboard shortcut to open first 9 most recent sessions using numerical keys
  • Set aside the active tab to an already existing saved session (1-9)

from tabs-aside.

tim-we avatar tim-we commented on June 10, 2024

Sounds good. Any idea for the actual keys to press? Those need to be set in the manifest.json (see MDN) and can not be changed by the user (AFAIK).
If the focus was on the sidebar or some other page controlled by the extension user-specified shortcuts could work.

from tabs-aside.

JordyScript avatar JordyScript commented on June 10, 2024
  1. Keyboard shortcut to set aside all tabs in a window
  • (Ctrl) + Alt + a | mnemonic: alternatively control setting _A_side
    // control doesn't have to be there as ALT A is free, but you are controlling the tabs, so it is mnemonically nice to have it, and it keeps ALT A free for something else. Of course Alt A saves you a keystroke. What are your thoughts?
  1. Keyboard shortcut to show/hide saved sessions/sidebar
  • (Ctrl) + Alt + s | mnemonic: alternatively control _S_idebar
    // control doesn't have to be there as ALT S is free, but you are controlling the tabs, so it is mnemonically nice to have it, and it keeps ALT S free for something else. Of course Alt S saves you a keystroke. What are your thoughts?
  1. Keyboard shortcut to open first 9 most recent sessions using numerical keys
  • Alt + Shift + 1 through 9 | Alternatively shift the session numbered X from the sidebar to the tabbar (i.e. opening them)
    // For number 3 and 4 to be most useful, a user should have the ability to reorder saved sessions manually, as well as determine whether new saved sessions are added to a queue or a stack (i.e. come in last extending the queue, or come in on top, heightening the stack) in the same spirit as what you said in Issue #6
  1. Set aside the active tab to an already existing saved session (1-9)
  • Ctrl + Alt + Shift + 1 through 9 | Control the Active tab: Alternatively shift the _A_ctive tab to the session numbered X (i.e. set it aside to session X)

from tabs-aside.

tim-we avatar tim-we commented on June 10, 2024
  1. and 2. sound good, I would prefer the Ctrl version.

I am not sure about 3. and 4. I think a shortcut that opens a small session selector popup that allows you to search for a session by name (and perhaps content) and select by Enter might be better because the session order would not matter. That might be more accessible for people that do not use the extension on a daily basis. What are your thoughts about that?

from tabs-aside.

tim-we avatar tim-we commented on June 10, 2024

Firefox does not allow Ctrl+Alt+... shortcuts. Alt+A works fine but Alt+S is already taken (this will open the history menu). I have set up a jsfiddle to check if a shortcut is valid (using the regular expressions Firefox uses for that validation).

Ctrl+Shift+A and Ctrl+Shift+S are both already taken.

from tabs-aside.

JordyScript avatar JordyScript commented on June 10, 2024

Your idea for a session selector pop-up short cut does sound more accessible, and it is also more general, as it provides access to all set aside groups not just the first 9. However this is at the cost of efficiency, as more keystrokes are needed. All in all one could make a justifiable case for such a shortcut as you propose.

In defense of the 3rd and 4th idea I shared. Session order would no longer be a problem if the sidepanel showing the sessions and their titles and indices are shown, as they serve as a visual reminder of the shortcut keys necessary to access them.

from tabs-aside.

JordyScript avatar JordyScript commented on June 10, 2024

Thanks for that jsfiddle. I didn't know Firefox does not allow Ctrl+Alt+... shortcuts. I used this page to determine if key combinations were available, but was not aware of these limitations.

With regards to the Ctrl+Shift + ... shortcuts: I expected as much... they run out rather quickly.
Alt + Shift + L and Alt + L are still free for session selector shortcuts for moving the focused tab to an exiting list, and opening an existing list respectively. What do you think about those?

from tabs-aside.

tim-we avatar tim-we commented on June 10, 2024

Ctrl+ Alt + ... shortcuts are for some reason not allowed as global shortcuts. They would still work in a website context like the sidebar (if the focus was on the sidebar).
Alt+Shift+L and Alt+L seem good idea.
Still need a shortcut for the sidebar though.

from tabs-aside.

JordyScript avatar JordyScript commented on June 10, 2024

So to open the side bar we could simply use Alt + Q and then maybe Alt + Shift + Q for setting all tabs aside. That way we only use 2 different letters Q and L where we group similar functionality together, which might be easier to remember than a different letter for each functionality. Q then manipulates all tabs/ all sessions, whereas L manipulates the focused tab and/or a specific session.

This time there's no reason for choosing Q other than that Q seems to be a seldomly used key for shortcuts, which also limits potential conflicts with third party add-ons, (Q is unused afaik except for Ctrl + Shift + Q which closes the firefox session).

from tabs-aside.

tim-we avatar tim-we commented on June 10, 2024

Good idea. All of those are fairly easy to press with one hand and I also like the grouping of similar functionality. Alt+Q and Alt+Shift+Q will be part of the next update, which will still take some time unfortunately. Alt+L and Alt+Shift+L will follow when session reordering is implemented (hopefully shortly after). Thanks for your input.

from tabs-aside.

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.