Repository navigation
Open scheme-less OSC 8 file links - #729
Merged
Merged
Conversation
A bare path[:LINE[:COL]] target reuses the fileref: parser and opens at its position. An absolute one keeps the TRAMP prefix of a remote default-directory instead of resolving locally, and Windows MSYS and Cygwin spellings are rewritten as for file:// URIs. Any URI scheme, not only scheme://, is handed to browse-url, so mailto: links work. NAME:LINE[:COL] and Windows drive letters are not schemes.
dakra
force-pushed
the
fix/schemeless-osc8-file-links
branch
from
October 12, 2026 06:45
856dea3 to
bddb7d1
Compare
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Pi can emit Markdown OSC 8 hyperlinks whose targets are relative file paths. Ghostel renders these as clickable links, but the opener silently ignores them because they have no URI scheme.
Resolve existing scheme-less file targets against the terminal buffer's
default-directoryand open them in another window. Decode percent-encoded paths while rejecting NUL bytes; leave existing scheme dispatch unchanged.Add dispatcher regression coverage for relative and absolute paths, percent-encoded UTF-8 names, and ignored targets.
Verification
git diff --checkpasses.