lwouis / alt-tab-macos

Windows alt-tab on macOS
https://alt-tab-macos.netlify.app
GNU General Public License v3.0
10.58k stars 322 forks source link

Allow changing keybinds :enhancement: #42

Closed jfdhuiz closed 4 years ago

jfdhuiz commented 4 years ago

Could you allow a way to modify https://github.com/lwouis/alt-tab-macos/blob/master/alt-tab-macos/resources/preferences.json within a text editor, say in ~/Application Support/Library/AltTab/preferences.json? That would the user to change the keybind.

In Hyperdock (combined with Karabiner Elements / Hammerspoon) I use Cmd+Space to "alt tab" and Meta+Cmd+Space to "alt tab within application". It allows to keep Ctrl+Tab intact, as it is also used in e.g. Firefox, iTerm, ...

In this example, I would like to change

"metaKey": 59,

to

"metaKey": 55,

as per [1]

[1] https://eastmanreference.com/complete-list-of-applescript-key-codes

lwouis commented 4 years ago

What you describe is possible starting from 1.1.0 :)

I hope to release some Preferences UI soon so that the text approach is less needed. However actually I just realized the json file should still be documented because it makes it scriptable and portable, whereas the UI is convenient and friendlier. Both should be documented. I'll open a ticket for that

lwouis commented 4 years ago

@jfdhuiz I just released 1.6.0 which features an easy dropdown menu to select which shortcut key you want to use to trigger the app. Check it out! :)