AutoYADM commit: 2025-05-13 19:19:29
This commit is contained in:
parent
49e5d39460
commit
66530735f4
1 changed files with 16 additions and 0 deletions
|
@ -77,6 +77,22 @@ define-command ui-scrolloff-toggle -docstring "toggle scrolloff" %{
|
||||||
|
|
||||||
map global ui z ": ui-scrolloff-toggle<ret>"
|
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 .* %{
|
hook global WinCreate .* %{
|
||||||
ui-wrap-enable
|
ui-wrap-enable
|
||||||
ui-scrolloff-toggle
|
ui-scrolloff-toggle
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue