diff --git a/.config/kak/kakrc b/.config/kak/kakrc index 3584e88b..f5ab0678 100644 --- a/.config/kak/kakrc +++ b/.config/kak/kakrc @@ -165,3 +165,18 @@ hook global InsertCompletionShow .* %{ map -docstring 'Select to file end' global user N "GjL" map -docstring 'Extend to file end' global user n "gjl" +declare-option -hidden int helix_up_line +define-command -hidden helix-up %{ + set-option helix_up_line %val{cursor_line} + execute-keys + evaluate-commands %sh{ + if [ "$kak_cursor_line" = "$kak_opt_helix_up_line" ]; then + echo "execute-keys gg" + else + echo "nop" + fi + } +} + +# map -docstring 'Helix scroll up' global normal ": helix-up" +