talonhub / community

Voice command set for Talon, community-supported.
MIT License
623 stars 779 forks source link

Add mission control to focus for app switcher #1542

Closed thetomcraig closed 1 month ago

thetomcraig commented 1 month ago

This adds functionality for application switching on MacOS. The actual equivalent on MacOS is the Application Switcher (Command + Tab), but there is no built in way for this, to be persistent on screen with a single hot key. The best alternative is Mission Control, which will show all of the open windows.

nriley commented 1 month ago

The way to do this without depending on the activation keystroke not being reset is using talon.mac.dock; I have this implemented as user.dock_send_notification("com.apple.expose.awake").

I had not submitted this change for incorporation into community as there is no way to navigate Mission Control from the keyboard or via accessibility. I guess it might be useful to people who use an eye tracker or another pointing device?

Update — at the community backlog session we decided to go ahead and get this merged. You can grab my code from https://github.com/nriley/talon_community/tree/nriley/apps/dock.

phillco commented 1 month ago

+1, +1 to also using the dock notification API if it works instead of the key shortcut, since it's possible people would redefine it

thetomcraig commented 1 month ago

So are we thinking that using that API would be more stable than the built in keystroke?

thetomcraig commented 1 month ago

Also, @nriley now I understand what you're saying about not being able to navigate Mission Control with the keyboard. But I do find using with an eye tracker pretty nice 🙂

thetomcraig commented 1 month ago

Closing this per discussion above