how to use <> grouping with full paths?

Discussion related to "Everything" 1.5 Alpha.
Post Reply
hellen_dorandt89
Posts: 52
Joined: Sun Apr 03, 2022 5:52 pm

how to use <> grouping with full paths?

Post by hellen_dorandt89 »

Lets I say I have three paths like:

Code: Select all

C:\Users\user1\documents\Allan\
C:\Users\user2\music\Norse
C:\Users\user3\Notes\Daily
I wanto to use grouping <> so that all results are limited to these 3 paths
I tried

Code: Select all

<C:\Users\user1\documents\Allan\;C:\Users\user2\music\Norse;C:\Users\user3\Notes\Daily>
And I get an empty search but when I try:

Code: Select all

"C:\Users\user1\documents\Allan\" | "C:\Users\user2\music\Norse" | "C:\Users\user3\Notes\Daily"
It works but doing something like:

Code: Select all

"C:\Users\user1\documents\Allan\" | "C:\Users\user2\music\Norse" .csv
other file extension are present in the search results such as .pdf or images until I do:

Code: Select all

"C:\Users\user1\documents\Allan\" .csv | "C:\Users\user2\music\Norse" .csv
This would be too daunting with more than three paths.
I would like to build a search like:

Code: Select all

ThesePathsOnly:<"Path\one ";"Path\two";"Path\three";"Path\four"> .csv
where only .csv files are shown, under these paths:
  • Path\one
  • Path\two
  • Path\three
  • Path\four
I need this so I can define a predetermined lists of paths under bookmark and then do:

Code: Select all

Mybookmark: .csv
Any help with this will be most appreciated
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

Re: how to use <> grouping with full paths?

Post by raccoon »

<C:\Path1\|"C:\Path Two\"|D:\Media\> .csv

Your setting under Options > General > Search > Operator precedence: [OR > AND]/[AND > OR] is going to determine how spaces and pipes are grouped when no angle brackets are both used -- angle brackets will allow you to force precedence for grouping.

Another option is:

path:C:\Path1\;"C:\Path Two\";D:\Media\ .csv
path:"C:\Path1\;C:\Path Two\;D:\Media\" .csv

To create your bookmark or filter, set the Search field to any of the above example formats above, followed by a space and the verb 'search:'
path:"C:\Path1\;C:\Path Two\;D:\Media\" search:
Then set the Macro field of the bookmark to: foo<search>
Now in the searchbar you can use foo:.csv or foo: .csv
hellen_dorandt89
Posts: 52
Joined: Sun Apr 03, 2022 5:52 pm

Re: how to use <> grouping with full paths?

Post by hellen_dorandt89 »

Perfect, that has it working exactly as I needed it to. Very insightfull post too. Thanks!
Post Reply