fzf: quote paths containing spaces
This commit is contained in:
parent
9c0baa8deb
commit
677b875879
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user