Add support for OSC 1337 OpenURL? #12948
Unanswered
debdutgoswami
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.
-
What
Would the team be open to supporting iTerm2's
OSC 1337 ; OpenURL=<base64>escape sequence in Ghostty, behind a default-off config option?Why
The use case that prompted this: when SSH'd into a remote machine, I want a command like
zed .(orcode .) to open the editor on my local machine, pointed at the remote path over SSH. iTerm2 supports this via OSC 1337 OpenURL - the remote shell prints an escape, iTerm2 decodes it locally, and macOS routes the URL (e.g.zed://ssh/user@host/path) to the right app handler.Today in Ghostty:
How (sketch)
ESC ] 1337 ; OpenURL=<base64> BEL, decode, validate (reject control chars, cap length).open_urlapprt action - already used by OSC 8 click handling, already implemented on macOS (NSWorkspace) and GTK (xdg-open / OpenURI portal).mailto:,zoom:,file://, custom schemes…). Similar reasoning to whyclipboard-writeis gated.Status
I have a working patch on a fork I'm using daily, with parser tests and the default-off config gate. ~190 lines, follows existing patterns (
report_pwd,show_desktop_notification).Curious to hear what the team thinks, especially on:
Seems related but with a different use-case but it is the same thing I believe: #11105
Beta Was this translation helpful? Give feedback.
All reactions