Skip to content
Discussion options

You must be logged in to vote

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 to echo and to whatever program you open.

Drop the surrounding quotes and let Yazi's quoting do the work:

[opener]
edit = [
  { run = "echo %s > ~/log.txt", o…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@matejdro
Comment options

Answer selected by matejdro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
1. Q&A
Labels
None yet
2 participants