Page 1 of 1

Visual Filter to hide .git

Posted: 26 Sep 2016 15:37
by MBaas
When viewing my project-repository (especially in branch-view) I'd like to hide the .git-Folder and its children.
So I've set a Visual Filter as

Code: Select all

!\.git
, but that's not cutting it - I get the same list as before. What's wrong?

Re: Visual Filter to hide .git

Posted: 26 Sep 2016 16:55
by bdeshi
Try Ghost Filter. (View > Show Items > Ghost Filter; View > Show Items > Edit Ghost Filter...)

Code: Select all

*\.git
[ed.]a slightly better choice is

Code: Select all

d: *\.git
this keeps any files named '.git' visible.

Ghost filters match against full path if the pattern contains slashes. Visual Filters match within item names only.

Re: Visual Filter to hide .git

Posted: 26 Sep 2016 19:29
by MBaas
:appl: Thanks very much, I like the first solution even better :lol: