Skip to content

Option to select all branches #4

@Haugen

Description

@Haugen

Sometimes I have a lot of local branches, and I know I just want to get back to a clean slate where only main is present. I just want to nuke all the local branches.

For a situation like this, it would be nice with a "Select All" option, that would automatically toggle on all of the branches in the list. Perhaps looking something like this:

Select branches to delete (use ↑/↓ or j/k to navigate, Space to select, Enter to confirm, q to quit):

  [ ] # Select All #
> [ ] branch/1
  [ ] branch/2
  [ ] branch/3
  [ ] branch/4
  [ ] branch/5
  [ ] branch/6
      branch/7 (checked out)
  [ ] branch/8
  [ ] branch/9
  • Not sure how we best visualize the "Select All" option in the output?
  • Perhaps it would make most sense that the "cursor" starts on the first branch, even if "Select All" is at the top? That way, you can start selecting individual branches just like before, but can move Up directly after running bcu to toggle "Select All"
  • Probably, one should be able to toggle All on and off, just like you could for an individual branch?

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