diff options
| author | bitraid <bitraid@protonmail.ch> | 2025-04-22 09:51:56 +0300 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2025-04-28 00:27:51 +0900 |
| commit | 0c280a3ce195a43dd0603739aed5b256b49a61b4 (patch) | |
| tree | 95f47b15ad953f56e48984f02f27db93afc2d4f3 /shell | |
| parent | 53e8b6e705c1607beac7dfcf1372c5a7aa2a985f (diff) | |
| download | fzf-0c280a3ce195a43dd0603739aed5b256b49a61b4.tar.gz | |
[fish] Simplify commandline call in fzf-file-widget
Diffstat (limited to 'shell')
| -rw-r--r-- | shell/key-bindings.fish | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/shell/key-bindings.fish b/shell/key-bindings.fish index a12047c7..b9d827d2 100644 --- a/shell/key-bindings.fish +++ b/shell/key-bindings.fish @@ -144,13 +144,8 @@ function fzf_key_bindings set -lx FZF_DEFAULT_COMMAND "$FZF_CTRL_T_COMMAND" set -lx FZF_DEFAULT_OPTS_FILE - if set -l result (eval (__fzfcmd) --walker-root=$dir --query=$fzf_query | string split0) - # Remove last token from commandline. - commandline -t '' - for i in $result - commandline -it -- $prefix(string escape -- $i)' ' - end - end + set -l result (eval (__fzfcmd) --walker-root=$dir --query=$fzf_query | string split0) + and commandline -rt -- (string join -- ' ' $prefix(string escape -- $result))' ' commandline -f repaint end |
