Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refs view: branch deletion #1658

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

actionshrimp
Copy link
Contributor

Hi there! A small QoL improvement for the refs view from magit. I suspect I may have missed an edge case or two, but it is still pretty handy for bulk-deletion when you have lots of old branches hanging round.

  • Allows deleting a branch from the refs view more easily with a direct bind ('x' by default), similar to magit.
  • Allows deleting multiple branches simultaneously with a visual selection which makes cleaning up lots of branches much simpler.

I wasn't entirely sure if making a new sub-section refs_view in the mappings was the ideal option as it didn't exist already and most of the other mappings it uses open other popups, but that's what I went for - happy to amend if it makes sense to do it a different way.

refs-view-branch-delete.mp4

@actionshrimp
Copy link
Contributor Author

actionshrimp commented Feb 15, 2025

Not completely sure why I'm getting that linter failure as I didn't touch that file, but it seems ok locally and on master.

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