Visual Filter to hide .git

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
MBaas
Posts: 692
Joined: 15 Feb 2016 21:08

Visual Filter to hide .git

Post 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?
____________________________________________________________________________________
Happy user. Screen scaling 100% and W11Pro [Version 10.0.26200.7922], XY 28.30.14000 * * LinkTree

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Visual Filter to hide .git

Post 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.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

MBaas
Posts: 692
Joined: 15 Feb 2016 21:08

Re: Visual Filter to hide .git

Post by MBaas »

:appl: Thanks very much, I like the first solution even better :lol:
____________________________________________________________________________________
Happy user. Screen scaling 100% and W11Pro [Version 10.0.26200.7922], XY 28.30.14000 * * LinkTree

Post Reply