AutoYADM commit: 2025-05-22 00:39:39

This commit is contained in:
Daniel Fichtinger 2025-05-22 00:39:39 -04:00
parent a7a29b4794
commit 346f4663c2
3 changed files with 20 additions and 6 deletions

View file

@ -1,6 +1,6 @@
evaluate-commands %sh{ hop-kak --init }
declare-option str hop_kak_keyset 'tnserigmaodhc,x.plfuwyqz'
declare-option str hop_kak_keyset 'tnserigmaodhcxplfuwyqz'
# select visible buffer
map global normal <a-%> ':execute-keys gtGbx<ret>'
@ -11,13 +11,18 @@ define-command hop-kak %{
}
}
# TODO: fix the broken interaction with scrolloff
define-command -override hop-kak-words %{
eval "ui-scrolloff-disable"
try %{ ui-wrap-disable }
# set-option window scrolloff 0,0
map window normal <esc> ': trigger-user-hook donehop<ret><esc>'
map window normal , ': trigger-user-hook donehop<ret>,'
hook -once window User donehop %{
eval "ui-scrolloff-enable"
try %{ ui-wrap-enable }
unmap window normal <esc>
unmap window normal ,
}
execute-keys 'gtGbxs\w+<ret>: hop-kak<ret>'
info done
# set-option window scrolloff 99,0
# eval "ui-scrolloff-enable"
}