Skip to content

Commit

Permalink
vim nav: use tap-hold to lock or not other layers
Browse files Browse the repository at this point in the history
numpad & funpad: quick tap lock the layer while long tap does not
  • Loading branch information
bouttier committed Oct 10, 2024
1 parent d433298 commit 775994a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kanata/deflayer/navigation_vim.kbd
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@
f1 f2 f3 f4 XX XX XX XX XX XX
f5 f6 f7 f8 XX XX lctl lalt lmet _
f9 f10 f11 f12 XX XX XX XX XX XX XX
_ _ _
@std _ @std
)

(defalias
std (layer-switch base)
pad (layer-switch numpad)

fun (layer-while-held funpad)
pad (tap-hold-press 0 $long_hold_timeout (layer-switch numpad) (layer-while-held numpad))
fun (tap-hold-press 0 $long_hold_timeout (layer-switch funpad) (layer-while-held funpad))

;; Mouse wheel emulation
mwu (mwheel-up 50 120)
Expand Down

0 comments on commit 775994a

Please sign in to comment.