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.
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.
Sorry, 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.
You should be able to do using [NSEvent addGlobalMonitorForEventsMatchingMask] - I used it to intercept the CMD+V to make all pastes plaintext in Plain Jane