Collapse 'try %{ execute-keys ... }' blocks to one line

This commit is contained in:
John Isom 2020-08-01 09:55:15 -06:00
parent 73f5f32385
commit 0063e4c4f5

View File

@ -181,13 +181,9 @@ evaluate-commands %sh[
define-command -hidden crystal-indent-on-new-line %{
evaluate-commands -no-hooks -draft -itersel %{
# Copy previous line indent
try %{
execute-keys -draft 'K<a-&>'
}
try %{ execute-keys -draft 'K<a-&>' }
# Remove empty line indent
try %{
execute-keys -draft 'k<a-x>s^\h+$<ret>d'
}
try %{ execute-keys -draft 'k<a-x>s^\h+$<ret>d' }
}
}