Closed Tyarel8 closed 2 months ago
Try hx %*
- %*
is already the escaped file list, you don't need to escape it again
Thanks, that worked. Maybe it would be a good idea to point out the difference between %*
and $@
in the example if one is escaped and the other is not, because I copied the neovim example in there.
I added a pull request to the docs with an example using %*
in windows.
I'm going to lock this issue because it has been closed for 30 days. ⏳ This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
What system are you running Yazi on?
Windows
What terminal are you running Yazi in?
wezterm 20240203-110809-5046fc22
yazi --debug
outputDid you try the latest nightly build to see if the problem got fixed?
Yes, and I updated the debug information above (
yazi --debug
) to the nightly that I triedDescribe the bug
I have helix as the opener for editing text like this:
and if I try to open a text file with a space in it's path it opens a blank file in readonly mode. If I open another buffer with helix it shows in the tab that the file that yazi tried to open included the
"
in the name, likea b.txt"
instead ofa b.txt
, so that probably is the issue.Minimal reproducer
Add
to
yazi.toml
and presso
to open a text file that contains a space in it's path, likea b.txt
Anything else?
Shows file
a b.txt
with contents "hello world!" After opening, the file is empty with readonly and the tab is calleda b.txt"
(the scratch is just so that the tab name shows)