I'm not sure if I've ever seen this answered but it would be very helpful for me.
How can one search for a name with a "greater/less then (or equal)" comparison?
Presumably name:>sometext would assume the > is in the name rather than an operator.
However since > is not a valid filename character can I suggest name:>sometext be set to function?
obviously with the other related comparators working likewise...
Cheers, David
Name:>sometext (also >= < <=)
Re: Name:>sometext (also >= < <=)
Would you like to compare as a string or number?
Name as a string greater than or equal to "N":
stricmp($name:,"N")>=0
eval:
Name as an integer greater than 5 search:
atoi:name:>5
-or-
$name:>5
atoi:
Use regex to capture the number somewhere inside the name, for example a number anywhere in the name is over 9000:
regex:(\d+) atoi:regmatch1:>9000
I will consider comparison operators for name.
Thank you for the suggestion.
Name as a string greater than or equal to "N":
stricmp($name:,"N")>=0
eval:
Name as an integer greater than 5 search:
atoi:name:>5
-or-
$name:>5
atoi:
Use regex to capture the number somewhere inside the name, for example a number anywhere in the name is over 9000:
regex:(\d+) atoi:regmatch1:>9000
I will consider comparison operators for name.
Thank you for the suggestion.
-
- Posts: 503
- Joined: Thu Dec 15, 2016 9:44 pm
Re: Name:>sometext (also >= < <=)
Generally I'm comparing the first 19 characters of names as dates in yyyy-mm-dd-hh-nn-ss ...... format. This preserves their date even when their timestamps get altered for various reasons
David
David
-
- Posts: 503
- Joined: Thu Dec 15, 2016 9:44 pm
Re: Name:>sometext (also >= < <=)
So for clarification a string compare, since it's in string y...s sequence.
I've noted your function alternatives; obviously if name:> etc is available then that provides a simple format easy to remember consistent with all the other ones such as size:>
String comparisons can also be useful when you want to work through a lot of files in stages, so one day you might deal with names A to B (i.e. name:>=A name:<=B), next day C to D etc, or whatever is required of the field (which presumably could equally be an Album title).
d
I've noted your function alternatives; obviously if name:> etc is available then that provides a simple format easy to remember consistent with all the other ones such as size:>
String comparisons can also be useful when you want to work through a lot of files in stages, so one day you might deal with names A to B (i.e. name:>=A name:<=B), next day C to D etc, or whatever is required of the field (which presumably could equally be an Album title).
d
Re: Name:>sometext (also >= < <=)
I will consider support for name:>=N
Thank you for the suggestion.
For now, please try sorting by name and jumping to the first file of interest by typing in the result list.
Thank you for the suggestion.
For now, please try sorting by name and jumping to the first file of interest by typing in the result list.
Re: Name:>sometext (also >= < <=)
I am still working on name:>n
For now, Everything 1.5.0.1356a adds:
$name:>"2020" $name:<"2022"
$name:>"2021-04" $name:<"2021-06"
eval:
Everything will compare strings lexicographically. (case sensitive)
For now, Everything 1.5.0.1356a adds:
$name:>"2020" $name:<"2022"
$name:>"2021-04" $name:<"2021-06"
eval:
Everything will compare strings lexicographically. (case sensitive)