Use the directories found by the current search as the basis for the second part of the search

Discussion related to "Everything" 1.5 Alpha.
Post Reply
Ralf_Reddings
Posts: 120
Joined: Fri Mar 24, 2023 4:53 pm

Use the directories found by the current search as the basis for the second part of the search

Post by Ralf_Reddings »

Its a bit hard to explain, lets say
c:\temp
has 5 directories in it. I want to search in only the first three
  • C:\Temp\horses
  • C:\Temp\dogs
  • C:\Temp\cats
  • C:\Temp\houses
  • C:\Temp\cars

I would have to type full paths for the
path-list
function then type my search string such as
eating
:

Code: Select all

path-list:<C:\Temp\dogs;C:\Temp\cats;c:\Temp\horses> eating
I can very quickly build a list of the directory that I want to search with (the search results contains only these items):

Code: Select all

dir:name:<cats|horses|dogs>
Can I then search only inside the folders found by
dir:name:<cats|horses|dogs>
, something like:

Code: Select all

<dir:name:<cats|horses|dogs>> eating
I tried the following:
  • <path-list:dir:name:<cats|horses|dogs>> eating
  • path-list:dir:name:<cats|horses|dogs> eating

This example I am providing is trivial and can easily be accomplished with standard search, what I am looking for is the precise advantage of
path-list
but without having to type the full paths to be searched myself, instead letting everything do the heavy lifting.

Something like recursively searching inside what has been found

Any help would be greatly appreciated!
therube
Posts: 4955
Joined: Thu Sep 03, 2009 6:48 pm

Re: Use the directories found by the current search as the basis for the second part of the search

Post by therube »

Highlight your wanted directories (by virtue of highlighting a file within each)
Set focus over the Path column
Right-click context-menu -> Copy Path

Paste into the Search bar

The search will be your wanted paths, OR'd together.

So with these directories, copied:
C:\000\TMP\TT2015\
C:\TMP\random\
C:\TMP\BRU\

I end up with a search line of,
<C:\000\TMP\TT2015\|C:\TMP\random\|C:\TMP\BRU\>

to which I can easily append; eating
so,
<C:\000\TMP\TT2015\|C:\TMP\random\|C:\TMP\BRU\> eating
.
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: Use the directories found by the current search as the basis for the second part of the search

Post by NotNull »

If I understood correctly ...

Method 1:

- Select the folders,
- Press 'CTRL + SHIFT + C' to copy the folder names to the clipboard
- Activate the search bar
- Press CTRL-V


Method 2:
- Open the Folders Sidebar (Menu:View > Folders)
- CTRL-click on the folders you are interested in.
(Now results will be limited to these folders)


Method 3:
- In the resultlist, select the folders that you are interested in
- SHIFT-right-click to open the context menu
- Select Parent Folders > Explore in Everything


Method 4:
- Select the folders you are interested in
- Press CTRL+SHIFT+C to copy their full names to the clipboard
- Type ancestorfilelist1: in the search bar
- CTRL+click ancestorfilelist1: or press F2
- Paste the foldernames
- Press OK

Method 5:
- Select the folders you are interested in
- Drag them to the search bar.
void
Developer
Posts: 16669
Joined: Fri Oct 16, 2009 11:31 pm

Re: Use the directories found by the current search as the basis for the second part of the search

Post by void »

Please try the following searches:



Group expansion

C:\Temp\<horses|dogs|cats>\ eating

expands to:

< C:\Temp\horses\ | C:\Temp\dogs\ | C:\Temp\cats\ > eating

Group Expansion



parent-name:

parentname:<horses|dogs|cats> eating

(this one doesn't match files inside subfolders)

parent-name:



ancestor-name:

ancestorname:<horses|dogs|cats> eating

(this one does match files inside subfolders)

ancestor-name:



Path lists

C:\Temp\horses\;C:\Temp\dogs\;C:\Temp\cats\

The path-list: search function is not required as Everything treats ; + absolute path as an OR list.

path-list:



Path part

pp:Temp\horses;Temp\dogs;Temp\cats

path-part:



Path search

\horses|\dogs|\cats
horses\|dogs\|cats\
\horses\|\dogs\|\cats\
\Temp\horses\|\Temp\dogs\|\Temp\cats\

The \ will enabling path matching.
The \ is matched so use cats\ if you don't want to match catshi...


wildcards:
Temp\horses\*|Temp\dogs\*|Temp\cats\*
Temp\horses\**|Temp\dogs\**|Temp\cats\**

the \ prefix is not needed as wildcards will match the start of a folder name.
* = match direct children
** = match all subfolders and files.
Ralf_Reddings
Posts: 120
Joined: Fri Mar 24, 2023 4:53 pm

Re: Use the directories found by the current search as the basis for the second part of the search

Post by Ralf_Reddings »

These suggestions are amazing, I will go through them one by one. Thank youo all!
Post Reply