I noticed that fix: not being able to open files with special chars on osx broke parentheses in the file path since they are not escaped by fnameescape. It seems like that function works for commands inside of neovim (:e (filename) worked fine), but since this is getting passed as a command to a terminal, it seems like more escaping may be needed.
Steps to repro:
mkdir "(foo)"
touch "(foo)/bar"
nvim "(foo)/bar"
Execute :lua require('yazi').yazi()
Error:
zsh:1: no matches found: /path/to/(foo)/bar
[Process exited 1]
Hey, thanks for the awesome plugin!
I noticed that fix: not being able to open files with special chars on osx broke parentheses in the file path since they are not escaped by
fnameescape
. It seems like that function works for commands inside of neovim (:e (filename)
worked fine), but since this is getting passed as a command to a terminal, it seems like more escaping may be needed.Steps to repro:
mkdir "(foo)"
touch "(foo)/bar"
nvim "(foo)/bar"
:lua require('yazi').yazi()
Error:
Version info: NVIM v0.9.5 Yazi 0.2.5 (Homebrew 2024-04-23) zsh 5.9 (x86_64-apple-darwin23.0) macOS 14.4.1 (23E224)