fish/fzf: Use __fzfcmd in fzf-complete

master
Pierre Neidhardt 2017-05-25 19:36:16 +02:00
parent e3fbb7b508
commit 1ea21a4cf9
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ bind m fzf-select
function fzf-complete -d 'fzf completion and print selection back to commandline'
set -l complist (complete -C(commandline -c))
set -l result
string join -- \n $complist | sort | fzf -m --select-1 --exit-0 --header '(commandline)' | cut -f1 | while read -l r; set result $result $r; end
string join -- \n $complist | sort | eval (__fzfcmd) -m --select-1 --exit-0 --header '(commandline)' | cut -f1 | while read -l r; set result $result $r; end
set prefix (string sub -s 1 -l 1 -- (commandline -t))
for i in (seq (count $result))