Skip to content

tweak(worktree): prioritize branch labels in picker rows#133

Merged
barrettruth merged 2 commits intomainfrom
tweak/worktree-branch-first
Apr 10, 2026
Merged

tweak(worktree): prioritize branch labels in picker rows#133
barrettruth merged 2 commits intomainfrom
tweak/worktree-branch-first

Conversation

@barrettruth
Copy link
Copy Markdown
Owner

Problem

The worktree picker still treated paths as the primary display field, which meant long branch names could stay truncated even in wide pickers and the row order did not match how people usually identify worktrees.

Solution

Move branch labels ahead of paths in worktree rows and allow branch labels to grow to their full width when the picker has spare space. Keep paths as secondary context and add regression coverage for the reordered rows and wide-picker branch expansion.

Worktree pickers are usually scanned by branch identity rather than by filesystem path.

Move branch labels ahead of paths and allow them to grow to their full width when the picker has spare space, while keeping paths available as secondary context.
@barrettruth barrettruth merged commit e153495 into main Apr 10, 2026
1 check passed
@barrettruth barrettruth deleted the tweak/worktree-branch-first branch April 10, 2026 04:24
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