Skip to content

[Feature]: Desktop Files pane: stack the file view under the tree, with a draggable splitter #181

Backlog

Description

@magicprinc

Problem

In the Files pane the workspace tree and the file being read sit side by side inside the right side panel: the tree owns a resizable column, and the file view gets what is left of a panel that already shares the window with the chat. There is no stacked option.

On a 1280–1440 px window that leaves roughly 200–350 px for code. What it costs:

  • every longer line wraps into a ribbon, or forces horizontal scrolling on each line;
  • paths in the tree truncate to a few characters while the tree is the widest element in the panel;
  • the only remedy is dragging the side panel wider, which takes width from the chat being read at the same time.

The Changes pane has the same shape and the same cause: both are a tree column plus a content area.

Proposal

  1. A layout choice for side panels: content right (today, the default) or content below.
  2. "Below": the tree spans the panel's full width at the top with a bounded, resizable and collapsible height; the file view takes the full width underneath. Both dividers stay draggable, and the choice plus both sizes persist the way the column width already does.
  3. Since the frame is shared between Files and Changes, the option should live at the shared level rather than be re-implemented per pane, so both behave the same.
  4. Optional: switch to stacked automatically below a side-panel width threshold, which is exactly where side-by-side stops working.

Why this shape

A tree needs vertical room and a short horizontal label; a file needs horizontal room. Splitting the scarce dimension gives both halves less than either needs.

Acceptance criteria

  • With "content below" selected, the tree spans the panel width and the file view sits under it.
  • Both dividers are draggable and the sizes survive a restart.
  • Switching back to "content right" restores the current layout exactly.

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