How to search for files and contents of folders matching the same name

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
skysearch
Posts: 3
Joined: Thu Apr 15, 2021 8:55 am

How to search for files and contents of folders matching the same name

Post by skysearch »

Hi I want to be able to search or files matching certain name criteria and also the contents of folders matching the same name criteria.

E.g If I wanted to search for video files containing ski references in the name I would do the following in the search bar with type set to video

Ski | Skiing | "Ski Holiday"


But I also want to combine this search to return video files in folder named Ski | Skiing | "Ski Holiday"


How do I do this?
void
Developer
Posts: 16678
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to search for files and contents of folders matching the same name

Post by void »

Please try enabling Match path from the Search menu.

When Match path is enabled, Everything will match the whole path and filename (instead of just the basename)

Alternative, use the path: search modifier:

path:<Ski | Skiing | "Ski Holiday" >
skysearch
Posts: 3
Joined: Thu Apr 15, 2021 8:55 am

Re: How to search for files and contents of folders matching the same name

Post by skysearch »

Thank you very much for replying.

What I specifically want to do is as follows:

1.) Return all video files with any of these in their name Ski | Skiing | "Ski Holiday" (regardless of the name of the folder)

PLUS

2.) Return all video files in folders where the folders have any of these in their name Ski | Skiing | "Ski Holiday"
void
Developer
Posts: 16678
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to search for files and contents of folders matching the same name

Post by void »

Please try the Video filter.
Filters can be activated from the Search menu, Filter bar (View -> Filters), right clicking the status bar, filter macro or filter keyboard shortcut.

With Match Path enabled from the Search menu and the Video filter active, Everything should do what you want with the following search:

Ski | Skiing | "Ski Holiday"

Consider prefixing Ski with ww: to match whole words only. Otherwise, ski will match skid and skip, etc..

ww:Ski | Skiing | "Ski Holiday"
-Or-
Enable Match Whole Words from the Search menu.
skysearch
Posts: 3
Joined: Thu Apr 15, 2021 8:55 am

Re: How to search for files and contents of folders matching the same name

Post by skysearch »

Thank you!

And if I want to do the same search, but limit the search are to a specific drive or starting path, how do I modify the search statement?
void
Developer
Posts: 16678
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to search for files and contents of folders matching the same name

Post by void »

Include the drive letter and colon (:) or starting path with a trailing backslash.

For example, limit your search to the E: drive

e: Ski | Skiing | "Ski Holiday"

For example, limit your search to the E:\My Photos

"e:\my photos\" Ski | Skiing | "Ski Holiday"

-use double quotes to escape spaces.
Post Reply