Skip to content
Myr

[fish] Simplify commandline call in fzf-file-widget

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

authored by bitraid · committed by Junegunn Choi · parent 53e8b6e · Browse files · 1 file+2 added−7 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+2 added−7 removed

  • other:+2 added−7 removed

1 file+2 added−7 removed

modified:shell/key-bindings.fish+2 added-7 removed
142 unmodified lines
143144 set -lx FZF_DEFAULT_COMMAND "$FZF_CTRL_T_COMMAND"145 set -lx FZF_DEFAULT_OPTS_FILE146147 if set -l result (eval (__fzfcmd) --walker-root=$dir --query=$fzf_query | string split0)148 # Remove last token from commandline.149 commandline -t ''150 for i in $result151 commandline -it -- $prefix(string escape -- $i)' '152 end153 end147 set -l result (eval (__fzfcmd) --walker-root=$dir --query=$fzf_query | string split0)148 and commandline -rt -- (string join -- ' ' $prefix(string escape -- $result))' '149150 commandline -f repaint151 end152
77 unmodified lines