AutoYADM commit: 2025-05-13 19:19:29

This commit is contained in:
Daniel Fichtinger 2025-05-13 19:19:29 -04:00
parent 49e5d39460
commit 66530735f4

View file

@ -77,6 +77,22 @@ define-command ui-scrolloff-toggle -docstring "toggle scrolloff" %{
map global ui z ": ui-scrolloff-toggle<ret>"
declare-option bool autowrap false
define-command autowrap-toggle -docstring "toggle autowrap" %{
evaluate-commands %sh{
if [ "$kak_opt_autowrap" = "true" ]; then
echo "autowrap-disable"
echo "set-option window autowrap false"
else
echo "autowrap-enable"
echo "set-option window autowrap true"
fi
}
}
map global ui a ": autowrap-toggle<ret>"
hook global WinCreate .* %{
ui-wrap-enable
ui-scrolloff-toggle