Skip to content

[Feature]: Desktop diff view: copy path, reveal in Explorer and open the file being diffed #178

Backlog

Description

@magicprinc

Problem

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:

  1. The diff header has no path chip. The pane shows the hunk content, but not the file path as an action target.
  2. 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

  1. 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.
  2. The same menu on inline diff headers in the timeline, so a diff seen in chat is addressable without going through the panel first.
  3. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions