Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select window by direct shortcut #210

Open
baest opened this issue Apr 3, 2020 · 14 comments
Open

Select window by direct shortcut #210

baest opened this issue Apr 3, 2020 · 14 comments
Labels
enhancement New feature or request niche Nice idea, but not enough demand for it

Comments

@baest
Copy link

baest commented Apr 3, 2020

It would be very nice to be able to select the window to focus by using the other keys on the keyboard. So alt-tab and then the windows appears with a character in front of it (like the Desktop number). When you press that character (I'm thinking a-z, 0-9) then the window opens. If you have more windows than 35 I don't know if there should be multiple characters or just no character for the last ones.

@lwouis
Copy link
Owner

lwouis commented Apr 3, 2020

Hi @baest! Thank you for sharing this idea!

There is a similar ticket with #178. Before anyone spends time implementing such a feature, I think it is important that there is a more developed specification for it. You mentioned for example the shortcut would be a-z, 0-9. Is this really a good mapping on the keyboard, when you left hand is already holding a modifier key, probably with your thumb? Look at RTS games like Starcraft 2. They use shortcuts close to the left hand like number, for control groups.

Also what happens for conflicting shortcuts, let's say if you set your main alt-tab shortcut to alt-1 already?

I think all these questions and more should be answered now, so that we get a clearer picture of:

@lwouis lwouis added the enhancement New feature or request label Apr 3, 2020
@lwouis lwouis changed the title Make it possible to select window by keyboard click Make it possible to select window by direct shortcut Apr 6, 2020
@lwouis lwouis changed the title Make it possible to select window by direct shortcut Select window by direct shortcut Apr 6, 2020
@SoPat712
Copy link

SoPat712 commented Sep 7, 2020

This doesn't seem like a very logical issue, and mouse hover app selection seemed like it was the best solution to this problem. I think this should just be marked closed, to be honest.

@lwouis
Copy link
Owner

lwouis commented Sep 7, 2020

I think @baest suggestion is interesting. Are you sure you understand the scenario? They basically would like hardcoded shortcuts like alt+1 always focuses the first window, alt+2 the second, etc. It's a very popular feature of other similar apps so I don't think we should discard it.

I think it could be done in a lightweight way by adding a checkbox Number keys here:

image

A deeper implementation would maybe allow more than 1 to 9, customize windows, etc. @baest What do you think?

@SoPat712
Copy link

SoPat712 commented Sep 7, 2020

I think it would personally be a feature that I would never use, but I could see it being useful. I have too many windows open at a time for that to work well, however.

@baest
Copy link
Author

baest commented Sep 9, 2020

@lwouis I think that could be a good solution. You had good points for my original suggestion and I have to admit I didn't consider them before posting this issue. I'm always a fan of keyboard shortcuts and when AltTab is in focus I guess we could bind whatever keys to it. I think the lightweight checkbox suggestion is a very good start, might be more than enough and if popular, but people need more, then I guess new issues would be raised and the feature expanded if there is enough tuits.

@justinnoel
Copy link

I added this comment in #1082:

Place a hotkey like "a", "b", "c", etc at the bottom right of each app/window that will let me just press that key to activate that app. Command Tab Plus does this with numbers, but that doesn't work well with lots of apps in the switcher.

Sample screenshot:

Screenshot of macOS app switcher using Command Tab Plus. Each app has a number selector for quick switching.

I already use an app that does exactly this. It's not awkward at all.

Scenario:

  1. You use the keyboard shortcut to trigger the AltTab switcher (⌘ ⇥) in my case.

  2. AltTab switcher opens with all the apps displaying a letter like "a", "b", "c", etc.

  3. Let go of the second portion of the hot key (⇥ in my case) while still holding down the first key in the sequence (⌘ in my case) and then tap the "h" key to open the app that has the "h" label. There is no need for another modifier key.

I do this every day with Command Tab Plus with numbers. The problem is that there are only numbers 1 through 0 so the available quick selections is way too limited.

====

@SoPat712 : I purposefully disable the "Mouse hover" option. So often in the regular macOS switcher, my mouse happens to be in a spot hovered over an app and I decide NOT to switch so I let go of the keys. BOOM! Because I was "hovered" over one of the apps in the switcher, macOS switches to it.

In Command Tab Plus and now in AltTab, I've disabled that. "Hover" is not a solution to this feature request.

@lwouis
Copy link
Owner

lwouis commented Oct 15, 2021

@justinnoel regarding mouse hover, you may be interested in research I did to make it better here: #286 (comment)

@justinnoel
Copy link

@lwouis As usual, that's some in-depth thought and analysis into the right solution. Thanks!

I just realized I also failed to point out the benefits of the hotkey suggestion 🤦‍♂️. The user doesn't need to move their hand to a mouse to quickly choose the right app!

@alloc33
Copy link

alloc33 commented May 21, 2022

I added this comment in #1082:

Place a hotkey like "a", "b", "c", etc at the bottom right of each app/window that will let me just press that key to activate that app. Command Tab Plus does this with numbers, but that doesn't work well with lots of apps in the switcher.

Sample screenshot:

Screenshot of macOS app switcher using Command Tab Plus. Each app has a number selector for quick switching.

I already use an app that does exactly this. It's not awkward at all.

Scenario:

  1. You use the keyboard shortcut to trigger the AltTab switcher (⌘ ⇥) in my case.
  2. AltTab switcher opens with all the apps displaying a letter like "a", "b", "c", etc.
  3. Let go of the second portion of the hot key (⇥ in my case) while still holding down the first key in the sequence (⌘ in my case) and then tap the "h" key to open the app that has the "h" label. There is no need for another modifier key.

I do this every day with Command Tab Plus with numbers. The problem is that there are only numbers 1 through 0 so the available quick selections is way too limited.

====

@SoPat712 : I purposefully disable the "Mouse hover" option. So often in the regular macOS switcher, my mouse happens to be in a spot hovered over an app and I decide NOT to switch so I let go of the keys. BOOM! Because I was "hovered" over one of the apps in the switcher, macOS switches to it.

In Command Tab Plus and now in AltTab, I've disabled that. "Hover" is not a solution to this feature request.

try rcmd.app. The best! (only 4$) worth it

@muescha
Copy link

muescha commented Jan 20, 2023

i would like to see shortcuts for example the first letter of the app following by a number of a tab - or  allow to search for a app name / title
(for this mode the shortcuts for close/minimize/... maybe are disabled)

@thimplicity
Copy link

I have read through this thread, because I opened a duplicate of this question. Is this still under consideration?

@patschl
Copy link

patschl commented Sep 11, 2024

This issue has now been open for more than 4 years.
Is this something that is happening in the future?
I would also be happy to donate for this feature 🙂

@lwouis
Copy link
Owner

lwouis commented Sep 11, 2024

Anyone can decide to step in and contribute this feature. Please see my message above for required next steps: #210 (comment). Essentially someone needs to write comprehensive specs for this feature, draw mockups, then we can move on to implementing it.

@lwouis
Copy link
Owner

lwouis commented Dec 22, 2024

Interesting idea of temporaly pinned windows: #3425 (comment)

@lwouis lwouis added the niche Nice idea, but not enough demand for it label Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request niche Nice idea, but not enough demand for it
Projects
None yet
Development

No branches or pull requests

8 participants