feat: add clickable file path links in terminal#77
Merged
AmethystLiang merged 1 commit intomainfrom Mar 24, 2026
Merged
Conversation
- Add terminal link detection that recognizes file paths with optional line:column suffixes and opens them in the editor or externally - Split shell IPC into separate openUrl, openFilePath, openFileUri, and pathExists handlers with proper URL/path validation - Register xterm link providers per pane with path existence caching - Support OSC 8 hyperlinks for http(s) and file: protocols - Add editor-reveal-location custom event for jumping to line/column Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
:line:columnsuffixes, opening them in the built-in editor or externallyshell:openExternalIPC handler into dedicatedopenUrl,openFilePath,openFileUri, andpathExistshandlers with proper URL parsing and path validationorca:editor-reveal-locationcustom event so clicking a terminal link jumps the Monaco editor to the exact line/columnTest plan
src/main/index.ts:10:5in the terminal opens the file at line 10, column 5 in the editor./src/foo.ts) resolve against the terminal's cwd🤖 Generated with Claude Code