Option for escaping dropped paths for xonsh #3548
Unanswered
CouleeApps
asked this question in
Feature Requests, Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When dragging and dropping files into Ghostty, their paths are escaped by adding backslashes before separator characters. However, users of xonsh need a different escaping strategy since backslashes are not supported. I know of two different ways this is addressed in existing tools:
glennsmith@Glenns-MacBook-Pro ~ @ /Applications/Binary Ninja.app
Technically this forms an invalid command, but you can pretty easily muscle memory typing an open quote, dragging in the file, and typing the closing quote.glennsmith@Glenns-MacBook-Pro ~ @ '/Applications/Binary Ninja.app'
though actually iTerm's implementation only adds quotes if necessary, which makes it rather finicky when dropping files since you can never be sure if they will become a string or will just be pasted raw.So while there are tradeoffs to both solutions, it is practically necessary to implement at least one of them before ghostty is possible to use with xonsh.
Beta Was this translation helpful? Give feedback.
All reactions