fork-dev / Tracker

Bug and issue tracker for Fork for Mac
505 stars 12 forks source link

Batch remove deleted branches ("Cleanup") #2200

Open dewey opened 2 weeks ago

dewey commented 2 weeks ago

Hey, Fork has this nice feature where it shows when a branch was deleted (Because it was merged on GitHub). It would be nice if there's a way to clean them all at once instead of having to find all of them and then right click -> "Delete n branches".

Maybe in the "Repository" -> "Remove deleted branches" could make sense?

What do you think? Is there already a better way?

Thanks!

Screenshot 2024-09-06 at 11 25 42 png@2x

Screenshot 2024-09-06 at 11 26 54 png@2x

DanPristupov commented 2 weeks ago

It would be nice if there's a way to clean them all at once instead of having to find all of them and then right click -> "Delete n branches".

Selecting them manually and then deleting at once is the correct way as this reduces the chance of user error.

https://github.com/fork-dev/Tracker/issues/1759#issuecomment-1342278433 https://github.com/fork-dev/Tracker/issues/1605#issuecomment-1129587907 https://github.com/fork-dev/Tracker/issues/1716 https://github.com/fork-dev/Tracker/issues/1414

dewey commented 2 weeks ago

Huh, I searched the issues but was somehow not able to find these. Thanks!

I'd argue that I'm more likely to delete a branch accidentally by selecting the wrong row after doing a manual multi select in a long list of open / deleted branches (As they are sorted alphabetically and not by "status" like deleted or active) vs catching all of them programmatically and maybe having a confirmation modal listing them all.