Skip to content

Conversation

@Jercik
Copy link
Owner

@Jercik Jercik commented Jan 24, 2026

Summary

  • Show relative path next to branch name in the interactive worktree selection
  • Sort worktree list alphabetically by branch name for easier navigation
  • Removed unused get-worktree-branches.ts (now using getWorktreeInfo which already provides both branch and path)
  • Updated TypeScript lib to es2023 for toSorted() support

Before:

? Select a worktree to remove:
❯ feature/login
  bugfix/header

After:

? Select a worktree to remove:
❯ bugfix/header (../worktree-remove-bugfix/header)
  feature/login (../worktree-remove-feature/login)

Test plan

  • Run node dist/cli.js in a repo with worktrees
  • Verify paths are displayed relative to current directory
  • Verify worktrees are sorted alphabetically by branch name
  • Verify selection still returns correct branch name

Show relative path next to branch name in the interactive worktree
selection, making it easier to identify which worktree to remove.
github-actions[bot]

This comment was marked as resolved.

github-actions[bot]

This comment was marked as resolved.

github-actions[bot]

This comment was marked as resolved.

github-actions[bot]

This comment was marked as resolved.

Makes it easier to find a specific worktree when there are many.
Also updates TypeScript lib to es2023 for toSorted() support.
github-actions[bot]

This comment was marked as resolved.

github-actions[bot]

This comment was marked as resolved.

@Jercik Jercik merged commit 9314664 into main Jan 24, 2026
5 of 6 checks passed
@Jercik Jercik deleted the feat/show-path-in-worktree-list branch January 24, 2026 08:20
@github-actions
Copy link

🎉 This PR is included in version 1.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants