fzf: quote paths containing spaces

This commit is contained in:
Charles Gould 2022-11-11 11:34:05 -05:00
parent 9c0baa8deb
commit 677b875879

View File

@ -22,6 +22,9 @@ function __fzf_files
)
set -l key $output[1]
set -l file $output[2]
if test (count (string split ' ' "$file")) -gt 1
set file "\"$file\""
end
switch $key
case ctrl-e
set -q EDITOR; or set EDITOR vim