Need help understanding filters

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

Need help understanding filters

Post by MBaas »

I'd like to use TreeView for one of my local git-repositories. The .git-Folder and the gazillion of files that it contains somewhat ruin the nice display. So I'd like to use LiveFilter to hide the .git-Folder and its content.

Shouldn't !.git do exactly that?

Hey, I even read the doc! And yet...either there was something that I did not read or understand or...could there be bug? I mean, even live-filtering my folder using filter porn gives me an empty list! But don't assume I'd have an porn - I can prove it: !porn is empty, too! (Also when appending .*) - so something is wrong and hopefully it's not me!
______________________________________________
Happy user ;-)

notabot
Posts: 59
Joined: 24 Feb 2021 12:34

Re: Need help understanding filters

Post by notabot »

MBaas wrote: 28 Apr 2021 12:41 Shouldn't !.git do exactly that?
According to the help:
Live Filter Box wrote: There is one difference to Visual Filters though: Live Filters behave like Type Ahead Find and treat ! and # as normal literal characters. In other words Live Filters do not support extended pattern matching (! = Boolean NOT, # = wildcard for digits).
TreeView
Do you mean branchview? Or the folder tree?
As I understand it, Live Filters are only available in the file lists, so not in the folder tree.

I tried it in Branch View, with a negative lookahead regular expression (no ".git" after) but that reported [Folders pass all filters], so that didn't work out well.

Long story short: IF it is possible: I don't know how.

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Need help understanding filters

Post by admin »

(Looks like the Help is outdated here.)

Tick this to make it work: Configuration | Find and Filter | Filters & Type Ahead Find | Live Filter Box | Enable extended pattern matching

Tip: "Enable extended pattern matching" is also in the right-click menu of the LFB "Filter" icon.

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

Re: Need help understanding filters

Post by MBaas »

Thanks Don, that was disabled indeed.

So regular lfb is fine now, positive or negative.

But it seems I can't exclude the content of an excluded folder from branch view. In other words: !.git excludes the .git-folder, but .git/1001 files are still shown. I think this was discussed and I seem to remember the reason was performance. Which I understand in the general case, but otoh my typical use-case where this would make sense has < 1.000 files, (one example: 672 files in total, 597 files to be hidden in .git)

I think an option that could be toggled via LFB-Context menu would make a lot of sense :)
______________________________________________
Happy user ;-)

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Need help understanding filters

Post by admin »

Try this: path:!.git

In the next beta this will work as well: !.git\

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

Re: Need help understanding filters

Post by MBaas »

VERY nice, thanks! :appl: :party:
______________________________________________
Happy user ;-)

Post Reply