AutoYADM commit: 2025-06-25 21:44:39
This commit is contained in:
parent
6d9e864d70
commit
75e9c827a7
2 changed files with 10 additions and 4 deletions
|
@ -51,7 +51,6 @@ define-command -hidden fmt-impl-window %{
|
||||||
# We use '' (U+E000) to save and restore the cursor
|
# We use '' (U+E000) to save and restore the cursor
|
||||||
# position after the pipe.
|
# position after the pipe.
|
||||||
execute-keys 'c<esc><a-i>p_<a-j>S\n+\z<ret>|<ret>s<ret>d"cP'
|
execute-keys 'c<esc><a-i>p_<a-j>S\n+\z<ret>|<ret>s<ret>d"cP'
|
||||||
# execute-keys 'c<esc><a-i>p<a-j>S\n+\z<ret>|<ret>s<ret>d"cP'
|
|
||||||
|
|
||||||
set-register s "%val{selections_desc}"
|
set-register s "%val{selections_desc}"
|
||||||
}
|
}
|
||||||
|
@ -71,6 +70,12 @@ define-command -docstring "toggle autofmt at window scope" fmt-toggle-window %{
|
||||||
}
|
}
|
||||||
|
|
||||||
declare-option str fmt_info
|
declare-option str fmt_info
|
||||||
hook global User fmt-enable-window %{ set-option window fmt_info "fmt " }
|
hook global User fmt-enable-window %{
|
||||||
hook global User fmt-disable-window %{ set-option window fmt_info "" }
|
set-option window fmt_info "fmt "
|
||||||
|
info -title fmt 'enabled autowrap'
|
||||||
|
}
|
||||||
|
hook global User fmt-disable-window %{
|
||||||
|
set-option window fmt_info ""
|
||||||
|
info -title fmt 'disabled autowrap'
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -66,6 +66,7 @@ define-command autowrap-toggle -docstring "toggle autowrap" %{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
map -docstring 'toggle autowrap' global ui a ": autowrap-toggle<ret>"
|
# map -docstring 'toggle autowrap' global ui a ": autowrap-toggle<ret>"
|
||||||
|
map -docstring 'toggle autowrap' global ui f ": fmt-toggle-window<ret>"
|
||||||
map -docstring 'toggle autospell' global ui s ": autospell-toggle<ret>"
|
map -docstring 'toggle autospell' global ui s ": autospell-toggle<ret>"
|
||||||
~
|
~
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue