From 80bb153817bbf012036e4b0126a98222b41cb3e2 Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Fri, 16 May 2025 16:12:53 -0400 Subject: [PATCH] AutoYADM commit: 2025-05-16 16:12:53 --- .config/kak/kakrc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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" +