4 ms·
How great it would be if you could replace command-tab instead of adding control-tab? Neat idea, although I do prefer the command-tab, hold command, hit Q or M
by SomeHacker44 7y ago
How great it would be if you could replace command-tab instead of adding control-tab? Neat idea, although I do prefer the command-tab, hold command, hit Q or M or H, continue holding command and hitting tab again, etc., of macOS standard switcher.
- lwouis 7y agoAuthor here. > replace command-tab instead of adding control-tab Currently there is no UI to customize hotkeys. I have a ticket to frame work that can be done here: https://github.com/lwouis/alt-tab-macos/issues/8 https://github.com/lwouis/alt-tab-macos/issues/8 However, you can switch keys in the code and get this working today. In `Application.swift` at line 16, replace let metaKey = 0x3B let metaModifierFlag: NSEvent.ModifierFlags = .control with let metaKey = 55 let metaModifierFlag: NSEvent.ModifierFlags = .command I tested, and it overrides the default macOS app-switcher, so no need to use something like Karabineer Elements which is what I use to disable the default app-switcher in addition to add the new control-tab hotkey shortcut. > I do prefer the command-tab, hold command, hit Q or M or H, continue holding command and hitting tab again You can already hit control-tab then hold, and cycle with tab or shift-tab. What's missing is the option to hit Q/M/H. I have a ticket to frame work that can be done here, inspired by the creative UI of another app called WindowSwitcher: https://github.com/lwouis/alt-tab-macos/issues/9 https://github.com/lwouis/alt-tab-macos/issues/9
- i386 7y agoYou should be able to do using [NSEvent addGlobalMonitorForEventsMatchingMask] - I used it to intercept the CMD+V to make all pastes plaintext in Plain Jane https://github.com/i386/plainjane/blob/master/Plain%20Jane/PJAppDelegate.m#L26 https://github.com/i386/plainjane/blob/master/Plain%20Jane/P...
- bluetidepro 7y agoSorry, I don't use Xcode often. I made the change in the code you provided above in Xcode. But now, how do I export/build the app to then drag that into my "Applications" folder with this version of the app, where it uses command-tab? EDIT: Google helped me out! If anyone else runs into the same thing, you do the dropdown in Xcode: Product > Archive > Distribute App (blue button) > "Copy App", and then that generates a folder with the newly created .app wherever you save it.