summaryrefslogtreecommitdiffstats
path: root/shell/key-bindings.fish
diff options
context:
space:
mode:
authorPierre Neidhardt <ambrevar@gmail.com>2016-10-11 21:12:31 +0530
committerPierre Neidhardt <ambrevar@gmail.com>2016-10-11 21:15:00 +0530
commit2134c0c8a95dc0c385def157be75e36465ae624b (patch)
tree8b49fa6a02d1033a1bf1506c6331497ed5bf9c2f /shell/key-bindings.fish
parent3222d62ddf0b8072e43ac2b5abd52b1d6d3f6eef (diff)
key-bindings.fish: Yank commandline in fzf-history-widget
Diffstat (limited to 'shell/key-bindings.fish')
-rw-r--r--shell/key-bindings.fish4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/key-bindings.fish b/shell/key-bindings.fish
index 6c761772..eaec9125 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