Page 1 of 1
Need help understanding filters
Posted: 28 Apr 2021 12:41
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!
Re: Need help understanding filters
Posted: 01 May 2021 18:20
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.
Re: Need help understanding filters
Posted: 04 May 2021 12:11
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.
Re: Need help understanding filters
Posted: 06 May 2021 12:56
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

Re: Need help understanding filters
Posted: 06 May 2021 14:01
by admin
Try this: path:!.git
In the next beta this will work as well: !.git\
Re: Need help understanding filters
Posted: 06 May 2021 15:40
by MBaas
VERY nice, thanks!
