CONTENT: <Capital letters>

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

CONTENT: <Capital letters>

Post by ChrisGreaves »

ext:doc T:\Pers\Places\LivingInBonavista content:"G" content:"R" content:"E" content:"A" content:"V" content:"S" content:"O"

This search string got the job done, but my report cards always read "Christopher can do better", so ...

Sometime since I moved to Bonavista I printed off a sheet of capital letters to help me to make a sign "GREAVES GROVES".
Where is that document? It held seven capital letters, enough to paint as a template the letters for "GREAVES GROVES".

(1) It was a MSWord document, so ext:doc
(2) It was stored in a known folder tree, so T:\Pers\Places\LivingInBonavista
(3) It consisted of seven capital letters, hence the lengthy set of Content: modifiers.
In typing that I suspect I could use a list, as in Content: "G";"R";"E";"A";"V";"S";"O"
I wonder if I could specify only capitalised letters.
ContentSearch_01.png
ContentSearch_01.png (69.7 KiB) Viewed 1627 times
I say “search string got the job done” because it returned only 287 items, and a scroll just partway down revealed a document titled “A E G O R S V.doc”, so that was fast!

I would appreciate any suggestions for a better, certainly more readable, search string. Perhaps one that returned fewer items in the Result List.
I got lucky this time; next time I might be faced with thousands of documents.
Thanks, Chris
NotNull
Posts: 5468
Joined: Wed May 24, 2017 9:22 pm

Re: CONTENT: <Capital letters>

Post by NotNull »

Somnething like this?

Code: Select all

case:content:<G R E A V S O>
The case: search modifier makes the search case sensitive
The content: search function uses <a b c> to specifify multiple searches (A and B and C)


Instead of using case: , you can also enable menu:Search > Match Case
ChrisGreaves
Posts: 688
Joined: Wed Jan 05, 2022 9:29 pm

Re: CONTENT: <Capital letters>

Post by ChrisGreaves »

NotNull wrote: Tue Jun 27, 2023 6:48 pm Something like this?
ContentSearch_02.png
ContentSearch_02.png (76.54 KiB) Viewed 1608 times
Something exactly like this!🫡
ext:doc T:\Pers\Places\LivingInBonavista case:content:<G R E A V S O>

FWIW Only 127 items in the Result List.
Now I suspect that most of my documents have those capitalised letters; my document headers and footers have my name "Greaves", and that is why my (today new) document with signage content appears (APLEMNSR) as well as my document from last year (A E G O R S V) albeit much further down in date-modified sequence.

I say again "This search string got the job done", but if you feel like extra bonus points, an academic question:-
Each letter sits in a table cell and each cell is on a page by itself.
In MSWord terms I think that this means that "white space" (^w) surrounds each letter.
Or perhaps in RegEx terms, a non-alphabetic surrounds each of my target letters.
Untitled2.png
Untitled2.png (8.97 KiB) Viewed 1608 times
In human terms "all of these letters, but each letter in isolation".

I suspect that I am asking only about intrinsic Everything features, some modifier that hasn't up and slapped me in the face yet :) :) , such as SoloCharacter: or similar.

Cheers and Thanks, Chris
NotNull
Posts: 5468
Joined: Wed May 24, 2017 9:22 pm

Re: CONTENT: <Capital letters>

Post by NotNull »

No Word installed here -- so it's hard to reproduce -- but this *might* work (longshot)

Code: Select all

case:regex:content:<G\r\n R\r\n E\r\n A\r\n V\r\n S\r\n O\r\n>
(In regular expressions, \r\n means return, newline so the capitals are only searched if at the end of a line)


Or maybe (ignoring the readability requirement):

Code: Select all

case:regex:content:<\WG\W  \WR\W  \WE\W  \WA\W  \WV\W  \WS\W  \WO\W>
(\W = non-word character)


On second thought, this might work better:

Code: Select all

case:regex:content:<G\W  R\W  E\W  A\W  V\W  S\W  O\W>
ChrisGreaves
Posts: 688
Joined: Wed Jan 05, 2022 9:29 pm

Re: CONTENT: <Capital letters>

Post by ChrisGreaves »

NotNull wrote: Tue Jun 27, 2023 7:34 pm On second thought, this might work better:

Code: Select all

case:regex:content:<G\W  R\W  E\W  A\W  V\W  S\W  O\W>
Untitled3.png
Untitled3.png (47.82 KiB) Viewed 1590 times
Genius! Sheer genius!! Both you and Void!
Now I know that you want me to say something along the lines of "This is great, but ..." but I am smarter than that. I already have enough extra homework to learn, so I shall bow out gracefully.

I have learned two new things about Everything today. NotNull: Thank You!

Chris
Post Reply