diff --git a/rc/filetype/kakrc.kak b/rc/filetype/kakrc.kak index 951afb42..2a0765dd 100644 --- a/rc/filetype/kakrc.kak +++ b/rc/filetype/kakrc.kak @@ -102,6 +102,8 @@ define-command -hidden kak-indent-on-new-line %~ try %{ execute-keys -draft k \%\w*[^\s\w]$ j } # deindent closing brace when after cursor try %_ execute-keys -draft -itersel ^\h*[>)}\]]\h*$ hm 1 _ + # deindent closing char(s) + try %{ execute-keys -draft -itersel ^\h*([^\s\w])\h*$ h 1 % \w*1$ 1 } = ~