AutoYADM commit: 2025-05-23 17:15:15

This commit is contained in:
Daniel Fichtinger 2025-05-23 17:15:16 -04:00
parent 9d7132e37a
commit 10bd7e2c15

View file

@ -15,7 +15,7 @@ define-command -hidden kdl-indent-newline %(
define-command -hidden kdl-indent-closing-brace %(
evaluate-commands -no-hooks -draft -itersel %(
#align closing brace to block start
try %( execute_keys -draft x_ <a-k>^\h*\}\z<ret> m<a-S>1<a-&> )
try %( execute-keys -draft x_ <a-k>^\h*\}\z<ret> m<a-S>1<a-&> )
)
)
@ -33,7 +33,7 @@ hook global WinSetOption filetype=kdl %|
require-module kdl
hook window InsertChar \n -group kdl-indent %{ kdl-indent-newline }
hook window InsertChar \} -group kdl-indent %{ kdl-indent-closing-brace }
hook window InsertChar '}' -group kdl-indent %{ kdl-indent-closing-brace }
hook -once -always window WinSetOption filetype=.* %{ remove-hooks window kdl-indent }