vigilancer/zmk-cmd-tab
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
IMO it better suites CMD-TAB scenario than more general zmk-tri-state module.
It programmed to work 'as you expected out of the box'.
Short tap is just like quick cmd-tab press - switches to previous application.
Long tap (hold) opens up menu with all applications. In this menu you can navigate tapping same key.
Shit-tap in menu allows to navigate backwards (if your shifts are inside through-key-positions).
Space or Enter will activate selected application.
Escape will cancel menu and will not switch to selected applicaiton. Just like Cmd-Tab is working normally.
Any other keys will be ignored. Well, you know, just because I like it that way.
how to use:
= single short tap (within hold-tab-ms) sends single cmd-tab. essentialy switching to previous application
= hold will send press(LGUI), tap(TAB) - cmd-tab menu where you can navigate with TAB (same &cmdtab key) or Shift-Tab
how I use it in keymap:
behaviors {
cmdtab: cmd_tab {
compatible = "zmk,behavior-cmd-tab";
label = "SWAPPER3";
#binding-cells = <0>;
bindings = <&kt_on LGUI>, <&kp TAB>, <&kt_off LGUI>;
through-key-positions = <96 97>; // shifts
end-key-positions = <94 95 99>; // esc, space, enter
hold-tap-ms = <250>;
};
};
#define L1B6 &cmdtab
what's what:
through-key-positions: this keys will be send through without disturbing cmd-tab module
end-key-positions: pressing this keys will close cmd-tab window.
When end-key-positions keys are pressed we essentially sending press LGUI(any_through_keys_pressed(KEY))
and then releaseing KEY and LGUI.