Skip to content
Myr

[fish] Support multiline commands (#954)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Fix found by @amosbird at https://github.com/junegunn/fzf/issues/953#issuecomment-310309055 closes #440

authored by Tom Fitzhenry · committed by Junegunn Choi · parent faedae7 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:shell/key-bindings.fish+1 added-1 removed
42 unmodified lines
43 function fzf-history-widget -d "Show command history"44 set -q FZF_TMUX_HEIGHT; or set FZF_TMUX_HEIGHT 40%45 begin46 set -lx FZF_DEFAULT_OPTS "--height $FZF_TMUX_HEIGHT $FZF_DEFAULT_OPTS --tiebreak=index --bind=ctrl-r:toggle-sort $FZF_CTRL_R_OPTS +m"47 history | eval (__fzfcmd) -q '(commandline)' | read -l result47 history -z | eval (__fzfcmd) --read0 -q '(commandline)' | perl -pe 'chomp if eof' | read -lz result48 and commandline -- $result49 end50 commandline -f repaint51 end
34 unmodified lines