From 2134c0c8a95dc0c385def157be75e36465ae624b Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Tue, 11 Oct 2016 21:12:31 +0530 Subject: [PATCH] key-bindings.fish: Yank commandline in fzf-history-widget --- shell/key-bindings.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell/key-bindings.fish b/shell/key-bindings.fish index 6c76177..eaec912 100644 --- a/shell/key-bindings.fish +++ b/shell/key-bindings.fish @@ -26,8 +26,8 @@ function fzf_key_bindings end function fzf-history-widget - history | eval (__fzfcmd) +s +m --tiebreak=index --toggle-sort=ctrl-r $FZF_CTRL_R_OPTS > $TMPDIR/fzf.result - and commandline (cat $TMPDIR/fzf.result) + history | eval (__fzfcmd) +s +m --tiebreak=index --toggle-sort=ctrl-r $FZF_CTRL_R_OPTS -q '(commandline)' > $TMPDIR/fzf.result + and commandline -- (cat $TMPDIR/fzf.result) commandline -f repaint rm -f $TMPDIR/fzf.result end