Allow the "number:" verb to stand alone. Natural number magic.
Allow the "number:" verb to stand alone. Natural number magic.
Currently the number: function can only work in combination with regexmatchN: substring matches.
Please allow number: to work as a stand-alone search verb that looks for natural numbers in any simple search query.
number:>42 --> The file or path contains a numeric value greater than 42. Eg: "foobar107.exe"
number:2002..2004 --> The file or path contains a numeric value between (and including) 2002 through 2004. Eg: "foobar2004.exe" or "foobar2004-02-11.exe", but not "foobar20040211.exe" as that contains the natural number 20,040,211.
Everything 1.5 already detects these natural numbers and knows of their values. (right?)
Being able to use number: outside the confines of regex: would allow for finding matches when multiple natural numbers appear in a single file name/path. This is almost impossible to do with a regular expression pattern without multiple branches for numerous regexmatchN's.
Please allow number: to work as a stand-alone search verb that looks for natural numbers in any simple search query.
number:>42 --> The file or path contains a numeric value greater than 42. Eg: "foobar107.exe"
number:2002..2004 --> The file or path contains a numeric value between (and including) 2002 through 2004. Eg: "foobar2004.exe" or "foobar2004-02-11.exe", but not "foobar20040211.exe" as that contains the natural number 20,040,211.
Everything 1.5 already detects these natural numbers and knows of their values. (right?)
Being able to use number: outside the confines of regex: would allow for finding matches when multiple natural numbers appear in a single file name/path. This is almost impossible to do with a regular expression pattern without multiple branches for numerous regexmatchN's.
Re: Allow the "number:" verb to stand alone. Natural number magic.
number: is a search modifier.
Using number: will convert text to a number for comparison.
Thank you for your suggestion.
It might have to work by matching the first digits found.
Using number: will convert text to a number for comparison.
added to my TODO list.Please allow number: to work as a stand-alone search verb that looks for natural numbers in any simple search query.
Thank you for your suggestion.
It might have to work by matching the first digits found.
Only when sorting.Everything 1.5 already detects these natural numbers and knows of their values. (right?)
Re: Allow the "number:" verb to stand alone. Natural number magic.
Everything 1.5.0.1285a adds a number-range: search function to search filenames for a number (a sequence of digits: 0-9) in a specific range.
The entire filename is searched until a matching number is found.
Example usage:
number-range:2011..2021
number-range:10..100 !number-range:50..60
It's similar to the char-range: search function which looks for a character in specific range.
I ran into to many issues trying to use the number: search modifier to perform the above number range search.
number: is an alias to atof: which converts text to a real number (can be signed and contain a decimal place).
I also added support for number:, atof: and atoi: for use on their own. (without a property)
number:, atof: and atoi: will only convert a number at the start of the text.
number:, atof: and atoi: will also convert hex with the 0x prefix to decimal.
The entire filename is searched until a matching number is found.
Example usage:
number-range:2011..2021
number-range:10..100 !number-range:50..60
It's similar to the char-range: search function which looks for a character in specific range.
I ran into to many issues trying to use the number: search modifier to perform the above number range search.
number: is an alias to atof: which converts text to a real number (can be signed and contain a decimal place).
I also added support for number:, atof: and atoi: for use on their own. (without a property)
number:, atof: and atoi: will only convert a number at the start of the text.
number:, atof: and atoi: will also convert hex with the 0x prefix to decimal.
Re: Allow the "number:" verb to stand alone. Natural number magic.
Everything 1.5.0.1286a removes the number: -> tonumber: alias and adds the number: -> number-range: alias.
For example:
number:2010..2020
Everything 1.5.0.1286a adds the whole-filename: search modifier support to char-range:
For example:
wfn:char-range:a..c
For example:
number:2010..2020
Everything 1.5.0.1286a adds the whole-filename: search modifier support to char-range:
For example:
wfn:char-range:a..c
Re: Allow the "number:" verb to stand alone. Natural number magic.
Thank you for the ref raccoon,
I am just now going through all the search modifiers and documenting them.
number: was previously undocumented.
I am just now going through all the search modifiers and documenting them.
number: was previously undocumented.
Re: Allow the "number:" verb to stand alone. Natural number magic.
Updated, thanks.
Re: Allow the "number:" verb to stand alone. Natural number magic.
I can't quite make this out..what does tonumber: do?
Re: Allow the "number:" verb to stand alone. Natural number magic.
See my ref'd link above. viewtopic.php?f=2&t=10785&p=41552#p41552
It allows us to examine whether a regex back-ref regexmatchN matches a number value. It converts it To a Number for math operator testing, just like we can do with size: which is also a number. You can use math operators like >=, <=, >, <, =, and the special 10..20 range operator. tonumber: would be called casting a data type in a formal programming language; converting a string to an integer.
Re: Allow the "number:" verb to stand alone. Natural number magic.
Everything 1.5.0.1287a adds hexnumber: and number: highlighting.
Re: Allow the "number:" verb to stand alone. Natural number magic.
Do number: (number-range:), hexnumber:, and tonumber: have an upper limit integer value that they support, or do they allow for infinitely "big numbers"?
is hexnumber: an alias for something else, maybe hexnumber-range: or number-range-hex:?
is hexnumber: an alias for something else, maybe hexnumber-range: or number-range-hex:?
Re: Allow the "number:" verb to stand alone. Natural number magic.
Everything uses a 64bit unsigned integer internally.
The maximum range is:
0..18446744073709551615
-or-
0..0xffffffffffffffff
hexnumber: is an alias for hex-number-range:
tonumber: uses a 64bit fixed point integer and has the following maximum range:
-9223372036854.775807..9223372036854.775807
The maximum range is:
0..18446744073709551615
-or-
0..0xffffffffffffffff
hexnumber: is an alias for hex-number-range:
tonumber: uses a 64bit fixed point integer and has the following maximum range:
-9223372036854.775807..9223372036854.775807