Searching for partial foldername with direct filetype descendents

Discussion related to "Everything" 1.5 Alpha.
Post Reply
aviasd
Posts: 135
Joined: Sat Oct 07, 2017 2:18 am

Searching for partial foldername with direct filetype descendents

Post by aviasd »

Hi,
Everything 1.5 allows doing a search that wasn't previously available in 1.4

Code: Select all

utils*\*.ps1
This translates to: Get me all .ps1 files that are direct descendants in folders whose name contains utils.

How could I rewrite the query to give the same results for multiple filetypes?

I.E:
I have a macro scr: which is a filter: ext:bat;cmd;ps1;py
How would I create the query:
Give me all scr: files that are direct descendants in folders whose name contains utils.
The above syntax doesn't apply to this situation..


P.S

I am aware that group expansion allows to do

Code: Select all

utils*\*.<ps1|bat>
The question is how to apply a complete filter.


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

Re: Searching for partial foldername with direct filetype descendents

Post by void »

please try the parentname: search function with your scr macro:

scr: exact:parentname:utils

use the exact: modifier to match the whole name "utils"
aviasd
Posts: 135
Joined: Sat Oct 07, 2017 2:18 am

Re: Searching for partial foldername with direct filetype descendents

Post by aviasd »

void wrote: Mon Apr 05, 2021 8:49 am please try the parentname: search function with your scr macro:

scr: exact:parentname:utils

use the exact: modifier to match the whole name "utils"
Ahh,
That's the one, thanks!
It Isn't available in the Search syntax help, but available in the insert function menu.
Have some exploring to do..
Post Reply