Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Worktree view: Show worktree path instead of branch name #4048

Closed
fjatelnicki opened this issue Feb 12, 2025 · 1 comment
Closed

Worktree view: Show worktree path instead of branch name #4048

fjatelnicki opened this issue Feb 12, 2025 · 1 comment
Assignees
Labels
area-worktrees Issues or features related to worktrees needs-verification Request for verification pending-release Resolved but not yet released to the stable edition
Milestone

Comments

@fjatelnicki
Copy link

Right now, when I open the worktree view with GitLens, I see the branch names.

I would love an option to change this to the path name to see the related worktree location.

Sometimes, my worktrees are not tied to a single branch and remain long after the branch has been merged. For example, I have a worktree called BUG_FIX. I use it whenever I need to quickly switch contexts for bug fixing, and I would appreciate knowing which one it is without having to hover over the worktrees.

Thanks!

@fjatelnicki fjatelnicki added feature triage Needs to be looked at labels Feb 12, 2025
@eamodio eamodio added good first issue Good for newcomers area-worktrees Issues or features related to worktrees and removed triage Needs to be looked at good first issue Good for newcomers labels Feb 12, 2025
@d13 d13 removed the feature label Feb 14, 2025
@eamodio eamodio self-assigned this Feb 28, 2025
@eamodio eamodio added this to the 16.4 milestone Feb 28, 2025
@github-actions github-actions bot added needs-verification Request for verification pending-release Resolved but not yet released to the stable edition labels Feb 28, 2025
@eamodio
Copy link
Member

eamodio commented Feb 28, 2025

Added 2 new settings:

  • gitlens.views.worktrees.worktrees.viewAs to specify whether to show worktrees by name, path, or relative path
  • gitlens.views.worktrees.branches.layout to specify whether to show branch worktrees as a list or tree, similar to branches

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-worktrees Issues or features related to worktrees needs-verification Request for verification pending-release Resolved but not yet released to the stable edition
Projects
None yet
Development

No branches or pull requests

3 participants