Page 1 of 1
[SOLVED] Find files without any label
Posted: 11 Oct 2018 22:04
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?
Re: Find files without any label
Posted: 11 Oct 2018 22:20
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?
Re: Find files without any label
Posted: 11 Oct 2018 22:46
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?
Re: Find files without any label
Posted: 11 Oct 2018 22:56
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^^
Re: Find files without any label
Posted: 12 Oct 2018 08:10
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?
Re: Find files without any label
Posted: 12 Oct 2018 08:38
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:
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()...
Re: Find files without any label
Posted: 12 Oct 2018 08:55
by Leito
I understand, thanks!
Re: Find files without any label
Posted: 12 Oct 2018 10:35
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...

)
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:
Re: Find files without any label
Posted: 12 Oct 2018 10:55
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?
Re: Find files without any label
Posted: 12 Oct 2018 11:02
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.
Re: Find files without any label
Posted: 12 Oct 2018 11:05
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.

Re: Find files without any label
Posted: 12 Oct 2018 12:34
by admin
Oh!

Stronger than I thought! Yeah, sure, it does everything* that Visual Filters can do.
* Apart from inversions by a prefixed "!".