markstory / gala-alt-tab-plus

A less flashy alt-tab window switcher for gala and Elementary OS
GNU General Public License v3.0
18 stars 3 forks source link

Use left / right arrows to select tabs #11

Open cveneziani opened 3 years ago

cveneziani commented 3 years ago

Hello there, would it be possible to implement selection via arrow keys in the switcher view?

I'm coming back to pantheon after a few years on gnome shell and there's this little thing missing that I've found super useful: when using alt + tab, then we're able to use left and right arrow keys to navigate to the previous / next tabs in the switcher.

For backward switching, it's way easier to reach the left arrow than the sift + tab keys.

markstory commented 3 years ago

That could be doable if pantheon is publishing a special keybinding for that combo. This plugin is currently using the switch-applications and switch-windows key bindings to cycle through active applications here: https://github.com/markstory/gala-alt-tab-plus/blob/556dbba9003c7b42ff7dc2e5bed6de52167e5ba9/src/Main.vala#L62-L65

I'm not well versed in vala or gtk, so I don't know how exactly what you're looking for could be done.