Skip to content

[Feature]: Desktop Changes pane: let the diff stack under the file list instead of beside it #177

Backlog

Description

@magicprinc

Problem

In Command Code Desktop the Changes pane opens in the right side panel. Inside it the change tree and the diff sit side by side behind a drag divider, and there is no stacked option: the tree keeps a resizable column and the diff takes whatever is left of a panel that already shares the window with the chat.

On a 1280–1440 px window at the default panel width the diff gets roughly 200–350 px. What that costs:

  • paths in the tree truncate to a few characters, even though the tree is the widest element in the panel;
  • diff lines wrap into unreadable ribbons or force horizontal scrolling on every hunk;
  • the only way to make the diff readable is dragging the side panel wider, which takes width from the chat — the thing being read while reviewing.

Widening the panel and closing the tree are the only workarounds, and neither gives the diff the panel's width while keeping the file list visible.

Proposal

  1. A layout choice for the Changes pane: diff right (today, the default) or diff below.
  2. "Below": the file list spans the full panel width at the top, with a bounded, resizable and collapsible height; the diff takes the full panel width underneath. Both dividers stay draggable, and the choice plus both sizes persist the way the list width already does.
  3. Expose it where the pane's other view options live (the pane already has an inline/side-by-side view-options menu), so it is discoverable; with nothing set, the current layout stays exactly as it is.
  4. Optional: switch to the stacked layout automatically below a side-panel width threshold, which is precisely where side-by-side stops working.

Why this shape

A diff needs width; a file list needs only its longest visible path and can use vertical space, which diffs usually need far more of. Stacking gives each pane the dimension it needs instead of splitting the scarce one.

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