My Tricky Recipes

General discussion related to "Everything".
Post Reply
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

My Tricky Recipes

Post by raccoon »

I'm starting this thread to document my (and any of your) tricky search/filter/bookmark combinations of logic functions... aka, recipes.

Here's one that allows me to find folders that only contain files that match my query, and must not contain any files that do not match.

X:\Path\ child:.jpg !regex:child:^((?!\.jpg).)*$ <-- only returns folders that contain only files with .jpg in them.
X:\Path\ child:.sha256 !regex:child:^((?!\.sha256).)*$ <-- only returns folders that contain only files with .sha256 in them.
X:\Path\ child:poster !regex:child:^((?!poster).)*$ <-- only returns folders that contain only files with "poster" in them.

Apparently this just doesn't work.

X:\Path\ child:poster !child:!poster :(
NotNull
Posts: 5517
Joined: Wed May 24, 2017 9:22 pm

Re: My Tricky Recipes

Post by NotNull »

If you want folders containing only jpg files (note the difference between filenames containing .jpg and filenames ending with .jpg):

Code: Select all

child:.jpg   !regex:child:^(?!.*\.jpg$)
(this is probably faster too. Not tested though)
void
Developer
Posts: 17159
Joined: Fri Oct 16, 2009 11:31 pm

Re: My Tricky Recipes

Post by void »

Apparently this just doesn't work.

X:\Path\ child:poster !child:!poster :(
You'll be able to do this in a future version with "Sub expressions"

eg: folder: childcount:>0 !child:<!poster>

Currently, Everything treats text passed to a function as literal text.
Post Reply