feat(desktop): add Copy Path:Line to Monaco editor context menu
Merged
KI
1y ago+58+58+01234567890123456789-13-13-01234567890123456789
Summary
- Add "Copy Path:Line" action to Monaco diff editor's right-click context menu
- Add keyboard shortcut
Cmd+Shift+C(Mac) /Ctrl+Shift+C(Windows/Linux) - Copies file path with line number in format
path:lineorpath:startLine-endLinefor multi-line selections - Works on both original and modified editor panels
Test plan
- Open a file in the diff viewer
- Right-click to see "Copy Path:Line" in context menu with keyboard shortcut shown
- Click cursor on a line, use context menu or hotkey, verify clipboard contains
filepath:lineNumber - Select multiple lines, use context menu or hotkey, verify clipboard contains
filepath:startLine-endLine
🤖 Generated with Claude Code
Summary by CodeRabbit
Release Notes
-
New Features
- Added ability to copy file paths directly from diff viewer lines for both original and modified files
-
Refactor
- Enhanced stability of save command operations in the diff viewer
✏️ Tip: You can customize this high-level summary in your review settings.