fix(fish): more robust string escaping

fixes #653
This commit is contained in:
alexandre pasmantier 2025-07-19 22:58:03 +02:00
parent 098f3f4fe4
commit da11c15510

View File

@ -109,9 +109,9 @@ function tv_smart_autocomplete
end end
for i in $result for i in $result
commandline -it -- $dir(string escape -- $i)' ' commandline -t -- (string escape -- "$dir$i")' '
# optional, if you want to replace '/home/foo/' with '~/', comment out above and uncomment below # optional, if you want to replace '/home/foo/' with '~/', comment out above and uncomment below
# commandline -it -- (string replace --all $HOME '~' $dir(string escape -- $i))' ' # commandline -t -- (string replace --all $HOME '~' -- (string escape -- "$dir$i"))' '
end end
end end