AutoYADM commit: 2025-05-11 14:10:08

This commit is contained in:
Daniel Fichtinger 2025-05-11 14:10:09 -04:00
parent 6fb756ba9f
commit 4c16ef5e0c

View file

@ -69,16 +69,16 @@ define-command ui-scrolloff-toggle -params 2 -docstring "toggle scrolloff" %{
CUR="$kak_opt_scrolloff"
echo "$CUR"
TARG="$1"
echo "$TARG"
# echo "$TARG"
HOR="$2"
echo "$HOR"
# echo "$HOR"
if [ "$CUR" = "99,$HOR" ]; then
echo "$TARG,$HOR"
echo this runs
# echo "$TARG,$HOR"
# echo this runs
else
echo "99,$HOR"
# echo "99,$HOR"
done
} %arg{@}
} #%arg{@}
# IFS=, set -- $kak_opt_scrolloff
# CUR="$1"
# ADD="$2"
@ -91,6 +91,8 @@ define-command ui-scrolloff-toggle -params 2 -docstring "toggle scrolloff" %{
}
map global ui z ": ui-scrolloff-toggle 1 2<ret>"
hook global WinCreate .* %{
ui-wrap-enable
}