Show a worktree's full path on hover to tell apart worktrees with the same folder name
The feature request
The worktree dropdown labels every worktree by the basename of its path (getWorktreeDisplayName). When several linked worktrees share a folder name, they are indistinguishable. This is common when tooling creates one checkout per workspace under the same relative name, e.g. ~/projects/a/.work, ~/projects/b/.work, ~/projects/c/.work: the "Linked Worktrees" list shows a column of identical .work entries, and the toolbar button tooltip only says "Current worktree is .work".
The existing name tooltip does not help, because it repeats the same basename and only appears when the name overflows.
Proposed solution
Show the worktree's full path on hover:
- In the worktree list, the name tooltip shows
worktree.path, always, not only when the name overflows. - The toolbar button tooltip reads "Current worktree is ".
This keeps the compact basename label and needs no layout change. It follows the tooltip conventions already used in the list item (the tooltips stay disabled under the accessible-list-tooltips flag, as today).
I have a small change ready (two lines across worktree-list-item.tsx and worktree-dropdown.tsx) and am happy to open a PR if this is marked help wanted.
Additional context
Reproduction: create several linked worktrees whose directories share a basename (git worktree add ../x/.work, git worktree add ../y/.work), then open the worktree dropdown.
Source: desktop/desktop