analysis of my search Strings

Discussion related to "Everything" 1.5.
Post Reply
ChrisGreaves
Posts: 821
Joined: Wed Jan 05, 2022 9:29 pm

analysis of my search Strings

Post by ChrisGreaves »

Untitled.jpg
Untitled.jpg (53.79 KiB) Viewed 2229 times
So my finger slips and strikes the character "i" which is adjacent to the character "o" on my laptop keyboard. And every member of this board is like me, growing older each day (grin!)

I do not know the logic of the code in Everything that makes sense of the submitted search string, but I can understand logic that could NOT detect my typo, and I know of logic that could detect my error.

Lexical (word) analysis that proceeds left to right, driven by a State Transition Table (like a Turing Machine) might arrive at the colon and say "Ah hah! I have been grabbing the name of a function/modifier, so I shall look for that string in my table of functions", and come up empty-handed when "cintent" is not found.

In Everything 1.5 it seems as if "cintent" is then just used as a search string to match against file names; the trailing colon turns this into a built in command string.

Is it possible that Everything might somehow alert the user to the function/modifier "cintent:" NOT being matched in some sort of table lookup?
In the example shown above I will be immediately alerted to an empty result list, and "0 items" alerts me to some sort of error on my part. But "dm:>2025-07-01 cintent:FuenfStuecke" might not alarm me if zero files were found with that (to me) foreign string.

Thanks, Chris
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: analysis of my search Strings

Post by void »

Everything does lack any error messages.

A nice "Unknown function/macro: cintent:" in red text in the status bar would really help.
This might be added in a future version.

Thank you for the suggestion.



For now, Everything will be rather silent, and assume cintent: is a filename.
Post Reply