Skip to content

fix(worktree): use spare width for full path display#131

Merged
barrettruth merged 1 commit intomainfrom
fix/worktree-path-width
Apr 10, 2026
Merged

fix(worktree): use spare width for full path display#131
barrettruth merged 1 commit intomainfrom
fix/worktree-path-width

Conversation

@barrettruth
Copy link
Copy Markdown
Owner

Problem

The worktree picker sized its path column from shortened paths only, so long but meaningful worktree paths could stay truncated even when the picker still had plenty of unused width.

Solution

Keep using shortened paths to choose the preferred worktree path width, but allow the column to grow up to the full home-relative path width when space is available. Add a regression test that covers a wide picker with a longer worktree path.

Measure shortened worktree paths for the preferred column width, but allow the column to grow up to the full home-relative path width when the picker has room.

This keeps the compact default behavior while avoiding unnecessary truncation for meaningful worktree paths in wide pickers.
@barrettruth barrettruth merged commit 282a7a0 into main Apr 10, 2026
8 checks passed
@barrettruth barrettruth deleted the fix/worktree-path-width branch April 10, 2026 04:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant