+
Skip to content

Conversation

barrett-ruth
Copy link
Contributor

Support add and delete with the git worktrees picker.

impl details

  • adds default bindings to <c-{a,x}> for add,delete
  • delete asks for confirmation
  • worktree paths default to ../<branch> (standard)
  • if a branch exists, switch to it - otherwise, create with -b flag

All of the above can definitely be subject to change! Let me know.

@ibhagwan
Copy link
Owner

Tysm @barrett-ruth, added a fallback to git switch -> cd when aworktree is found (otherwise git switch fails)

04097f5

@ibhagwan ibhagwan merged commit db45bab into ibhagwan:main Oct 16, 2025
8 checks passed
@ibhagwan
Copy link
Owner

Btw, TIL that deleting a worktree isn't that horrible, the branch gets "merged" back into the current cwd :-)

@barrett-ruth
Copy link
Contributor Author

🐐

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.

2 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载