Skip to content

feat(shell): jump to the main worktree with bare worktree flags - #73

Merged
benbenbang merged 2 commits into
mainfrom
issue-72-main-worktree-enter
Sep 11, 2026
Merged

benbenbang merged 2 commits into
mainfrom
issue-72-main-worktree-enter

Conversation

@benbenbang

Copy link
Copy Markdown
Member

Make it quicker to return to the main worktree without opening the worktree picker.

  • Treat bare cd -jw and cd --jump-worktree invocations as shortcuts to the main worktree.
  • Preserve existing Tab completion and standalone worktree picker behavior.
  • Document the shortcut and test it across Bash, Zsh, Nushell, and PowerShell, including history, keyword shadowing, and non-repository errors.

Closes #72

Make bare `cd -jw` and `cd --jump-worktree` navigate directly to the main worktree. Keep Tab completion and the standalone worktree picker unchanged.

Refs #72
Test the shortcut across Bash, Zsh, Nushell, and PowerShell, including command history, keyword shadowing, and non-repository failures.

Closes #72
@benbenbang
benbenbang enabled auto-merge (rebase) September 11, 2026 12:34
@github-actions github-actions Bot added documentation Improvements or additions to documentation enhancement New feature or request labels Sep 11, 2026
@benbenbang
benbenbang merged commit 29e1666 into main Sep 11, 2026
5 checks passed
@benbenbang
benbenbang deleted the issue-72-main-worktree-enter branch September 11, 2026 12:37
@ptah-bw-technical-app

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 1.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Labels

documentation Improvements or additions to documentation enhancement New feature or request released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Jump to the main worktree when executing bare cd -jw

1 participant