AutoYADM commit: 2025-05-11 01:40:16
This commit is contained in:
parent
7856369662
commit
6fb756ba9f
1 changed files with 27 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue