AutoYADM commit: 2025-05-11 01:40:16

This commit is contained in:
Daniel Fichtinger 2025-05-11 01:40:16 -04:00
parent 7856369662
commit 6fb756ba9f

View file

@ -64,6 +64,33 @@ define-command -override ui-wrap-toggle -docstring "toggle wrap" %{
}
map -docstring "Wrap UI" global ui w ": ui-wrap-toggle<ret>"
define-command ui-scrolloff-toggle -params 2 -docstring "toggle scrolloff" %{
echo %sh{
CUR="$kak_opt_scrolloff"
echo "$CUR"
TARG="$1"
echo "$TARG"
HOR="$2"
echo "$HOR"
if [ "$CUR" = "99,$HOR" ]; then
echo "$TARG,$HOR"
echo this runs
else
echo "99,$HOR"
done
} %arg{@}
# IFS=, set -- $kak_opt_scrolloff
# CUR="$1"
# ADD="$2"
# TARG="3"
# if [ "$CUR" = "99" ]; then
# echo "$TARG,$ADD"
# else
# echo "99,$ADD"
# fi
}
hook global WinCreate .* %{
ui-wrap-enable
}