Repository navigation
Conversation
Right-clicking a file or folder in the Files panel now offers Copy full path and Copy relative path next to Copy mention. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ApprovabilityVerdict: Not approved Macroscope's review found this PR not approvable — This adds two new production Files-panel context-menu actions and changes the existing copy toast behavior. The implementation is localized and low-risk in scope, but the new menu behavior lacks direct automated coverage and should receive human verification. You can add or adjust custom eligibility rules. Learn more. |
|
Note Written by Thanks for this. I'm closing it as part of PR triage. Right now we're only taking focused bug fixes from outside contributors (see Read this first), and this PR is not one. From the review: Adding full and relative path copying to the Files menu introduces new actions rather than fixing an existing defect. This capability needs maintainer agreement first. If you think this was a mistake, message me on Twitter at @maria_rcks and I'll take another look. |
Proposed in #7481.
Right-clicking a file or folder in the Files panel offers Open, Reveal, Open with, Copy mention, and Add to chat, but there is no way to copy the entry's filesystem path the way editors offer Copy Path / Copy Relative Path. Copy mention puts composer syntax on the clipboard, not a path.
Change
The Files panel context menu gets two items above Copy mention:
resolveFileContextMenuAbsolutePathhelper Open and Reveal use, so it is correct for remote and tunnel connections. The item is hidden when the path can't be resolved.Both show a "Path copied" toast with the copied value. The three copy actions now share one copy-and-toast helper; the Copy mention toast now shows the copied mention instead of the bare path.
Scope: web and desktop share this menu. The mobile Files tree has no context menu, so mobile is unchanged. Windows separators follow whatever #19201 settles on.
Before / After
Verification
vp run --filter @t3tools/web typecheckpasses;vp lintreports nothing on changed lines;vp fmtclean.🤖 Generated with Claude Code