Add 'crystal-trim-indent' command
This removes trailing whitespaces from the end of lines
This commit is contained in:
parent
783fac3d61
commit
62ac42bb23
|
@ -178,6 +178,14 @@ evaluate-commands %sh[
|
||||||
# Commands
|
# 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 %{
|
define-command -hidden crystal-indent-on-new-line %{
|
||||||
evaluate-commands -no-hooks -draft -itersel %{
|
evaluate-commands -no-hooks -draft -itersel %{
|
||||||
# Copy previous line indent
|
# Copy previous line indent
|
||||||
|
|
Loading…
Reference in New Issue
Block a user