daniellandau / switcher

Gnome Shell extension to switch windows quickly by typing
GNU General Public License v3.0
352 stars 43 forks source link

Switch to selected application when releasing keys. #128

Open olofwalker opened 3 years ago

olofwalker commented 3 years ago

It would be great if there was an option so that Switcher switches to the selected application when you release the command keys. This way it would resemble how the default switcher works if find myself switching back and forward a lot between two application and switcher requires an extra "enter" to select the previous application used.

daniellandau commented 3 years ago

I've been thinking about that too. With the current keyboard handling we don't get a notification when a modifier is released though. And how would you type to filter if you can't release the modifier. I haven't figured out a UX that would work and not be confusing, so help is much appreciated.

olofwalker commented 3 years ago

With the current keyboard handling we don't get a notification when a modifier is released though.

So you can't connect to the keymap and subscribe to state changes? Like this one https://github.com/sneetsher/keyboard_modifiers_status/blob/master/extension.js

And how would you type to filter if you can't release the modifier. I haven't figured out a UX that would work and not be confusing, so help is much appreciated.

Wonder if just adding a third quick switch key combo, that just toggles to the previous would be it, not sure, I agree it's tricky.

Edit: one thing that would work I think. If you have set Alt+Tab as the switcher hot key, and when the switcher shows itself, you press tab again, it would switch to the previous app, still, two have to hit the key twice, but this one is much faster than pressing enter.

daniellandau commented 3 years ago

Thanks for the link, I'll look into it. I don't doubt that the technical issue can be solved, the UX issue is harder. If it's a second key combo, then what is the provided extra value on top of the regular alt-tab.

olofwalker commented 3 years ago

then what is the provided extra value on top of the regular alt-tab.

I've tried to survive with Switcher mapped to alt-tab :)

daniellandau commented 3 years ago

So say your other key combo is super+tab, I'd still say it makes more sense to have that as the normal one.