AutoYADM commit: 2025-05-13 18:32:14

This commit is contained in:
Daniel Fichtinger 2025-05-13 18:32:14 -04:00
parent 66a600da48
commit 422a963697
2 changed files with 58 additions and 5 deletions

View file

@ -64,17 +64,18 @@ define-command ui-scrolloff-toggle -docstring "toggle scrolloff" %{
CUR="$kak_opt_scrolloff"
IFS=,
read TARG HOR <<<$kak_opt_base_scrolloff
if [ "$CUR" != ${CUR#99} ]; then
IFS=,
read VSCROLL _ <<<$kak_opt_scrolloff
if [ "$VSCROLL" = 99 ]; then
final="$TARG,$HOR"
else
final="99,$HOR"
fi
# echo "echo final: $final, targ: $TARG, hor: $HOR"
echo "set-option window scrolloff $final"
}
}
map global ui z ": ui-scrolloff-toggle 3 3<ret>"
map global ui z ": ui-scrolloff-toggle<ret>"
hook global WinCreate .* %{
ui-wrap-enable