Skip to content

Add "Remove worktree and delete local branch" option to branch delete menu#5362

Open
ruudk wants to merge 1 commit intojesseduffield:masterfrom
ruudk:delete-worktree-from-braches-view
Open

Add "Remove worktree and delete local branch" option to branch delete menu#5362
ruudk wants to merge 1 commit intojesseduffield:masterfrom
ruudk:delete-worktree-from-braches-view

Conversation

@ruudk
Copy link
Contributor

@ruudk ruudk commented Mar 12, 2026

PR Description

Please check if the PR fulfills these requirements

  • Cheatsheets are up-to-date (run go generate ./...)
  • Code has been formatted (see here)
  • Tests have been added/updated (see here for the integration test guide)
  • Text is internationalised (see here)
  • If a new UserConfig entry was added, make sure it can be hot-reloaded (see here)
  • Docs have been updated if necessary
  • You've read through your own file changes for silly mistakes etc

When pressing 'd' on a branch that is checked out by another worktree, the delete menu now shows "Remove worktree and delete local branch" as the first (default) option, making it easy to clean up both in one step.

Screenshot 2026-03-12 at 07 52 11@2x

… menu

When pressing 'd' on a branch that is checked out by another worktree,
the delete menu now shows "Remove worktree and delete local branch" as
the first (default) option, making it easy to clean up both in one step.
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.

1 participant