From 46d086fbbc64671f5383c967b0679f14e7059e37 Mon Sep 17 00:00:00 2001 From: Alex Leferry 2 Date: Thu, 3 Jul 2014 01:33:06 +0200 Subject: [PATCH] rename clean_around_selections command to filter_around_selections --- rc/fish.kak | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/rc/fish.kak b/rc/fish.kak index b03ca9ee..ae0c7691 100644 --- a/rc/fish.kak +++ b/rc/fish.kak @@ -33,10 +33,10 @@ addhl -group /fish/code regex %sh{ printf '\<(%s)\>' $(printf '\Q%s\\E|' $(fish # Commands # ‾‾‾‾‾‾‾‾ -def -hidden _fish_clean_around_selections %{ +def -hidden _fish_filter_around_selections %{ eval -draft -itersel %{ exec - # trailing white spaces + # remove trailing white spaces try %{ exec -draft s \h+$ d } } } @@ -45,8 +45,8 @@ def -hidden _fish_indent_on_new_line %{ eval -draft -itersel %{ # preserve previous line indent try %{ exec -draft K } - # cleanup previous line - try %{ exec -draft k : _fish_clean_around_selections } + # filter previous line + 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 } # indent after (begin|for|function|if|switch|while) commands and add 'end' command @@ -60,7 +60,7 @@ def -hidden _fish_indent_on_new_line %{ hook global WinSetOption filetype=fish %{ addhl ref fish - hook window InsertEnd .* -group fish-hooks _fish_clean_around_selections + hook window InsertEnd .* -group fish-hooks _fish_filter_around_selections hook window InsertChar \n -group fish-indent _fish_indent_on_new_line }