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 key $output[1]
|
||||||
set -l file $output[2]
|
set -l file $output[2]
|
||||||
|
if test (count (string split ' ' "$file")) -gt 1
|
||||||
|
set file "\"$file\""
|
||||||
|
end
|
||||||
switch $key
|
switch $key
|
||||||
case ctrl-e
|
case ctrl-e
|
||||||
set -q EDITOR; or set EDITOR vim
|
set -q EDITOR; or set EDITOR vim
|
||||||
|
Loading…
x
Reference in New Issue
Block a user