Add 'crystal-trim-indent' command

This removes trailing whitespaces from the end of lines
This commit is contained in:
John Isom 2020-08-01 09:58:21 -06:00
parent 783fac3d61
commit 62ac42bb23

View File

@ -178,6 +178,14 @@ evaluate-commands %sh[
# Commands
# ‾‾‾‾‾‾‾‾
define-command -hidden crystal-trim-indent %{
evaluate-commands -no-hooks -draft -itersel %{
execute-keys <a-x>
# remove trailing white spaces
try %{ execute-keys -draft s \h+$ <ret> d }
}
}
define-command -hidden crystal-indent-on-new-line %{
evaluate-commands -no-hooks -draft -itersel %{
# Copy previous line indent