Try more escaping of paths
This commit is contained in:
parent
1d95babb60
commit
1267aee97e
|
@ -87,7 +87,7 @@ function find_global() {
|
||||||
echo -e "$PATHS" > $FZY_CACHE
|
echo -e "$PATHS" > $FZY_CACHE
|
||||||
fi
|
fi
|
||||||
file="$(cat $FZY_CACHE | fzy -l 20)"
|
file="$(cat $FZY_CACHE | fzy -l 20)"
|
||||||
echo $file | cat - $FZY_CACHE | awk '!x[$0]++' > /tmp/fzy_paths_$file_type && mv /tmp/fzy_paths_$file_type $FZY_CACHE
|
echo "$file" | cat - $FZY_CACHE | awk '!x[$0]++' > /tmp/fzy_paths_$file_type && mv /tmp/fzy_paths_$file_type $FZY_CACHE
|
||||||
echo "$file"
|
echo "$file"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,7 +104,7 @@ function open_path() {
|
||||||
cd_to "$selection"
|
cd_to "$selection"
|
||||||
else
|
else
|
||||||
selection=$(realpath "$selection")
|
selection=$(realpath "$selection")
|
||||||
cd_to "$(dirname $selection)"
|
cd_to "$(dirname \"$selection\")"
|
||||||
nvim "$selection"
|
nvim "$selection"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue