From 0e185c54ef6db57556eb6c9491c414a234312060 Mon Sep 17 00:00:00 2001 From: Alex Leferry 2 Date: Tue, 27 Sep 2016 11:36:43 +0200 Subject: [PATCH] compact commands --- rc/base/fish.kak | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/rc/base/fish.kak b/rc/base/fish.kak index 08211278..1434124a 100644 --- a/rc/base/fish.kak +++ b/rc/base/fish.kak @@ -35,28 +35,28 @@ addhl -group /fish/code regex \b(and|begin|bg|bind|block|break|breakpoint|builti def -hidden _fish_filter_around_selections %{ # remove trailing white spaces - try %{ exec -draft -itersel s \h+$ d } + try %{ exec -draft -itersel s\h+$d } } def -hidden _fish_indent_on_char %{ eval -draft -itersel %{ # deindent on (else|end) command insertion - try %{ exec -draft w (else|end) } + try %{ exec -draft w(else|end) } } } def -hidden _fish_indent_on_new_line %{ eval -draft -itersel %{ # preserve previous line indent - try %{ exec -draft K } + try %{ exec -draft K } # filter previous line - try %{ exec -draft k : _fish_filter_around_selections } + try %{ exec -draft k:_fish_filter_around_selections } # copy '#' comment prefix and following white spaces - try %{ exec -draft k x s ^\h*\K#\h* y j p } + try %{ exec -draft kxs^\h*\K#\h*yjp } # indent after (case|else) commands - try %{ exec -draft k x (case|else) j } + try %{ exec -draft kx(case|else)j } # indent after (begin|for|function|if|switch|while) commands and add 'end' command - try %{ exec -draft k x (begin|for|function|(? x y p j a end k } + try %{ exec -draft kx(begin|for|function|(?xypjaendk } } }