mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-20 09:33:42 -05:00
Revert to using __fzfcmd in fzf-complete
@@ -49,7 +49,7 @@ The following can replace fish completion menu with fzf. Because of a [fish bug]
|
|||||||
function fzf-complete -d 'fzf completion and print selection back to commandline'
|
function fzf-complete -d 'fzf completion and print selection back to commandline'
|
||||||
set -l complist (complete -C(commandline -c))
|
set -l complist (complete -C(commandline -c))
|
||||||
set -l result
|
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))
|
set prefix (string sub -s 1 -l 1 -- (commandline -t))
|
||||||
for i in (seq (count $result))
|
for i in (seq (count $result))
|
||||||
|
|||||||
Reference in New Issue
Block a user