You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature]: Desktop diff view: copy path, reveal in Explorer and open the file being diffed #178
When a diff is open in a session in Command Code Desktop, the file it belongs to cannot be addressed. The diff view shows the change, but offers no path to copy and no menu with the file's exact location, so every follow-up action means reconstructing the path by hand:
copy the path into a terminal (git blame, code, cat), a commit message or a chat;
open the containing folder in Explorer to see the file next to its neighbours;
open the same file in the side panel beside the diff to compare it with the change.
Two concrete gaps:
The diff header has no path chip. The pane shows the hunk content, but not the file path as an action target.
The capability exists elsewhere but not here. Copy path is available from the sidebar's chat and project context menus, and the app already has a platform-aware reveal helper ("Show in Explorer" / "Reveal in Finder" / "Open folder"). Neither is reachable from a diff.
The result is inconsistent in the place where it matters most: the file list can be addressed, while the file actually being read — the diff — cannot.
Proposal
A path chip in the diff header (relative path, absolute in the menu), clickable to a menu with: Copy path, Copy relative path, Reveal in File Explorer (opens the folder and selects that file), Open in app, and Open file beside the diff so the current content can be compared with the change.
The same menu on inline diff headers in the timeline, so a diff seen in chat is addressable without going through the panel first.
Any existing "Open in …" action for the diff should target the active file, not the project root.
Acceptance criteria
With a diff open, the path is visible without a tooltip and the menu offers copy, reveal and open-file.
Reveal opens Explorer with the file selected, on Windows.
The menu on an inline diff in the transcript behaves identically.
Environment
Command Code Desktop 0.1.63, Windows 10 (build 19045) x64.
Activity