Repository navigation
feat: copy path to line from editor tab and line number gutter - #79
Merged
Merged
Conversation
Tracks cursor line position from Monaco editor and adds context menu options to copy file path with line number anchor (e.g. path#L59). Co-Authored-By: Claude Opus 4.6 <[email protected]>
nwparker
force-pushed
the
nwparker/line-number-copy-path
branch
from
March 24, 2026 06:29
e748d7e to
e8aa9d5
Compare
Adds "Copy Path to Line" and "Copy Relative Path to Line" as Monaco editor context menu actions so they appear on right-click anywhere in the editor. Also handles right-click on line number gutter to show the context menu there too. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Replaces Monaco's built-in context menu with a Radix DropdownMenu for the line number gutter, matching the VSCode approach of intercepting the gutter right-click and showing a custom menu. Shows the clicked line number in the menu items. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Co-Authored-By: Claude Opus 4.6 <[email protected]>
This was referenced Sep 18, 2026
5 of 7 tasks
enrick-dev
pushed a commit
to enrick-dev/orca
that referenced
this pull request
Oct 15, 2026
…yai#79) * feat: add copy path/relative path to line in editor tab context menu Tracks cursor line position from Monaco editor and adds context menu options to copy file path with line number anchor (e.g. path#L59). Co-Authored-By: Claude Opus 4.6 <[email protected]> * fix: add copy path to line in Monaco editor context menu Adds "Copy Path to Line" and "Copy Relative Path to Line" as Monaco editor context menu actions so they appear on right-click anywhere in the editor. Also handles right-click on line number gutter to show the context menu there too. Co-Authored-By: Claude Opus 4.6 <[email protected]> * fix: use Radix context menu for line number gutter right-click Replaces Monaco's built-in context menu with a Radix DropdownMenu for the line number gutter, matching the VSCode approach of intercepting the gutter right-click and showing a custom menu. Shows the clicked line number in the menu items. Co-Authored-By: Claude Opus 4.6 <[email protected]> * fix: simplify gutter context menu to just path-to-line options Co-Authored-By: Claude Opus 4.6 <[email protected]> --------- Co-authored-by: Claude Opus 4.6 <[email protected]>
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
#L<line>to path)Changes
editorLineNumberMenu.ts) and shows a Radix DropdownMenu at click position. Tracks cursor line viaonDidChangeCursorPosition.relativePathprop to MonacoEditoreditorCursorLinestore state for cursor line tracking per fileTest plan
<abs-path>#L42<rel-path>#L42🤖 Generated with Claude Code