Drag and drop should not escape file paths in alt mode #10029
Unanswered
delthas
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Currently dragging a file onto ghostty will insert an escaped file path (on both Linux and MacOS).
However, while this is useful when inserting paths into a shell, it is not standard expected behavior when pasting into an alt mode application, like vim. For example, if you drop a file called
my document.jpg, you'd expect it to be inserted as is into the editor, without changing tomy\ document.jpgOn the 2 other Wayland terminals I checked, the behavior was to disable escaping file paths when alt-mode was enabled:
A concrete consequence is that in my TUI IM client, when receiving a DnD file, I treat it as "unescaped", but I get some backslashes and then I can't read the file.
I suggest adding, like foot and Kitty, no quoting when in alt mode.
Beta Was this translation helpful? Give feedback.
All reactions