Skip to content

Remove worktree and branch at the same time #5205

@Polo123456789

Description

@Polo123456789

Is your feature request related to a problem? Please describe.

When deleting a branch, if its currently being checked out by a worktree, you only get the options to switch to it, detach it or remove it (only the worktree). I think that if you are choosing to delete the branch, when choosing to remove the worktree you want to remove both the branch and the worktree.

Image

Describe the solution you'd like

Either a new option that removes both (I'm filling it as a pr), or to change the default behavior to remove both (the path that leads to promptWorktreeBranchDelete only comes from deleting a branch)

Describe alternatives you've considered

To my understanding i can create a custom command, but i think it should be the default behavior (And im already used to start deleting a branch by pressing d.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions