dandavison / open-in-editor

Open a local file from a URL at a line number in an editor/IDE
55 stars 8 forks source link

Spaces in paths not handled in GUI wrapper #23

Open eugenesvk opened 1 year ago

eugenesvk commented 1 year ago

The gui wrapper on a Mac doesn't seem to be able to handle hyperlink clicks when those contain spaces etc. I guess there needs to be some (html??) un-escape conversion?

this works with the same editor

printf '\x1b]8;;file:///path/to/file/with spaces.txt\x1b\\This is a file with spaces\x1b]8;;\x1b\\\n'

while this fails trying to open a with%20spaces.txt instead

printf '\x1b]8;;file-line-column:///path/to/file/with spaces.txt\x1b\\This is a file with spaces\x1b]8;;\x1b\\\n'