Repository navigation
What system are you running Yazi on?Linux X11 What terminal are you running Yazi in?kitty 0.49.2
|
Replies: 1 comment 1 reply
|
Yes, this is expected: Yazi already shell-quotes every path it substitutes for When a path contains anything outside a small safe set (letters, digits and Drop the surrounding quotes and let Yazi's quoting do the work: [opener]
edit = [
{ run = "echo %s > ~/log.txt", orphan = true, desc = "test" },
]The same goes for your real openers, e.g. Source, if you want it: |
Yes, this is expected: Yazi already shell-quotes every path it substitutes for
%s, so you should not wrap it in quotes yourself.When a path contains anything outside a small safe set (letters, digits and
-_=/,.+), for example a space, Yazi substitutes it as a single-quoted shell word like'/home/user/my file.txt'. Paths made only of safe characters are inserted as-is. Your opener puts that already-quoted word inside another pair of double quotes, and inside"..."single quotes are literal characters, so the shell passes them through toechoand to whatever program you open.Drop the surrounding quotes and let Yazi's quoting do the work: