Skip to content

Add a "close" button to cancel individual branch filters #987

@mdindoffer

Description

@mdindoffer

What

Add a "close" button to cancel individual branch filters by clicking on them, instead of having to use "Clear All" button, or looking them up in the tree.

Current state

Currently, when I want to cancel some hidden branch visibility filters, I have two options in Sourcegit:

  1. Click the "Clear all" button on the right side which removes all the filters
  2. Find the hidden branch in the left tree panel with Branches, click on the eyepatch icon and then select "Unset"
    Image

Why

None of the options above is ideal right now. Option nr. 1 - Clearing all of the filters - is not what I usually want. In most cases I want to just unset one or two branch filters, while keeping the rest in place. Option nr. 2 allows for manipulating individual filters, but takes at least two clicks to perform, not counting the time to find the branch in the tree in the first place. This is time consuming if you have a lot of branches in your repository, and the eye-patch icon is tiny, which makes it hard to click.

Proposed enhancement

I see 2 ways to do this:

  1. Make the filter label interactive, so that clicking on it will unset the filter
  2. Add a small close (x) button to the right side of every filter rule that can be clicked to unset the filter. I.e:

Image

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions