[SOLVED] Find files without any label

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Leito
Posts: 561
Joined: 26 Sep 2016 15:37
Location: Windows 10 1809 x64

[SOLVED] Find files without any label

Post by Leito »

Is it possible to search (in LiveFilterBox for instance) for files that have no label, if they're not in the tag DB?

The help file mentions the following search syntax:

Code: Select all

lbl:        without any label (but item in tag DB)
Does that mean that I'm out of luck if the files I'm searching for have no tag, no label?
Last edited by Leito on 21 Oct 2018 19:40, edited 1 time in total.

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Find files without any label

Post by highend »

for files that have no label, if they're not in the tag DB?
When they are NOT in the tag.dat file?
One of my scripts helped you out? Please donate via Paypal

Leito
Posts: 561
Joined: 26 Sep 2016 15:37
Location: Windows 10 1809 x64

Re: Find files without any label

Post by Leito »

highend wrote:When they are NOT in the tag.dat file?
Yes, if I understand correctly the help file. That's what it means, right? That this search syntax will only work if the file is in the tag db?

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Find files without any label

Post by highend »

I don't get it. Newly tagged files are in memory only (but in a state that could be called "tag db") until the tag.dat is saved again and the tags are transferred into the tag.dat file

If a file isn't tagged at all, how would a search make sense that tests for not existing labels? You'd search for nothing in ... NOTHING^^
One of my scripts helped you out? Please donate via Paypal

Leito
Posts: 561
Joined: 26 Sep 2016 15:37
Location: Windows 10 1809 x64

Re: Find files without any label

Post by Leito »

You mean that the "lbl:" syntax works by searching in the tag DB only?

If so, using the live filter box, how can I filter out every item that has a label and display only items that have no label?

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Find files without any label

Post by highend »

Any of those syntaxes search the tag database (memory / tag.dat file) only.
Again: If a file is NOT tagged at all (no tags, no label, no comment) using a syntax like:

Code: Select all

lbl:""
does not make sense.

If you really want to find files that do not have a label and haven't been tagged at all,
you would need to write a script that gets all labeled files + ALL files and remove the labeled
ones from them via a loop, regexreplace() or (if possible) formatlist()...
One of my scripts helped you out? Please donate via Paypal

Leito
Posts: 561
Joined: 26 Sep 2016 15:37
Location: Windows 10 1809 x64

Re: Find files without any label

Post by Leito »

I understand, thanks!

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

Re: Find files without any label

Post by admin »

1) The Help file statement you are quoting is for Visual Filters, not for search. (I have to look into this now, because it does not seem to work like it should... :evil: )

2) In search, "lbl:" will return all files that are in tag.dat regardless whether they have a label or not. It's equivalent to "lbl:*".

3) To find all files without a label, regardless whether they are in tag.dat or not, you use: lbl:""

4) To find all files that are not in tag DB you could use this:

Code: Select all

lbl:"" and tags:"" and cmt:""

Leito
Posts: 561
Joined: 26 Sep 2016 15:37
Location: Windows 10 1809 x64

Re: Find files without any label

Post by Leito »

Thanks for the tips, that was what I was looking for.

In fact, I thought that the syntax for search, Live Filter Box and Visual Filters was the same and that's where the confusion of this topic comes from. Oops. :?

So, you confirm there's no way to do something similar to lbl:"" from the Live Filter Box?

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

Re: Find files without any label

Post by admin »

1) Me too I think they should be the same. I'm working on it right now...

2) Correct, the Live Filter Box does not support anything that goes beyond filename matching.

Leito
Posts: 561
Joined: 26 Sep 2016 15:37
Location: Windows 10 1809 x64

Re: Find files without any label

Post by Leito »

admin wrote:the Live Filter Box does not support anything that goes beyond filename matching.
Are you sure? Something like lbl:yellow works on the Live Filter Box. :mrgreen:

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

Re: Find files without any label

Post by admin »

Oh! :ninja: Stronger than I thought! Yeah, sure, it does everything* that Visual Filters can do. :beer:

* Apart from inversions by a prefixed "!".

Post Reply