Add hotkeys to the worktree-conflict menu shown when deleting a branch#5631
Add hotkeys to the worktree-conflict menu shown when deleting a branch#5631MitchellCash wants to merge 1 commit into
Conversation
|
Looks like an easy change, but I'm undecided; the standard keybinding for deleting things in lazygit is Holding off merging this for now for these reasons. |
|
That makes sense. Funnily, the reason I was messing around these parts was because I had the same thought to "delete both the worktree and the branch", as the UX for that flow wasn't great, especially as I have been using worktrees more and more. Short of having that change code complete, I figured a hotkey for removal of the worktree would get me by 😄 Happy to wait, especially if the "delete both the worktree and the branch" is coming! |
PR Description
The menu that appears when deleting a branch that's checked out in another worktree had no keybindings, forcing users to navigate with arrow keys. Add 's', 'd', and 'r' for switch / detach / remove.
Please check if the PR fulfills these requirements
go generate ./...)