Show all the files which are in the same folder as a file shown in the search result?

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
Biff
Posts: 1158
Joined: Mon May 25, 2015 7:09 am

Show all the files which are in the same folder as a file shown in the search result?

Post by Biff »

How could one show all the files (with unknown names, extensions) being in the same folder with a file shown in the search result?
void
Developer
Posts: 16748
Joined: Fri Oct 16, 2009 11:31 pm

Re: Show all the files which are in the same folder as a file shown in the search result?

Post by void »

Some suggestions:

1) Copy the file to the clipboard (Ctrl + C).
At the end of your search, add the following:

parent:

Paste the clipboard contents (Ctrl + V) and remove the filename.



2) Copy the full path and filename to the clipboard (Ctrl + Shift + C).
At the end of your search, add the following:

parent:"

Paste the clipboard contents (Ctrl + V) and remove the filename and add a trailing ".



3) Consider adding a 'Search Parent in Everything...' context menu item:
  • In the registry, navigate to:
    HKEY_CLASSES_ROOT\*\shell
  • Create a new Key called:
    Search Parent in Everything...
  • In this key, create a new String Value, set the name to:
    Icon
  • Set the value to:
    C:\Program Files\Everything\Everything.exe,0
  • Create a new Key called:
    command
  • In this key, set the (Default) value to:
    "C:\Program Files\Everything\Everything.exe" -parentpath "%1" -select "%1"
  • Now you can right click your file and click Search Parent in Everything...
Biff
Posts: 1158
Joined: Mon May 25, 2015 7:09 am

Re: Show all the files which are in the same folder as a file shown in the search result?

Post by Biff »

Many thanks!

Sorry for my extremlay bad understanding, cannot get it to work. Could you give an example, please? For the first to methods?

Sorry again.
void
Developer
Posts: 16748
Joined: Fri Oct 16, 2009 11:31 pm

Re: Show all the files which are in the same folder as a file shown in the search result?

Post by void »

For example, you have the following in your results:

C:\Program Files\Everything\Everything.exe


As I understand, you wish to find files directly in "C:\Program Files\Everything"

To do this:
Select C:\Program Files\Everything\Everything.exe in the result list and press Ctrl + C to copy the file to the clipboard.

Click the search box.
Say your search is currently set to:

Everything

Add parent: to the end of the search:

Everything parent:

Press Ctrl + V to paste the file path from the clipboard.
This will change the search to:

Everything parent:"C:\Program Files\Everything\Everything.exe"

Now remove the Everything.exe part at the end:

Everything parent:"C:\Program Files\Everything\"

You should now see results directly in "C:\Program Files\Everything\".
Biff
Posts: 1158
Joined: Mon May 25, 2015 7:09 am

Re: Show all the files which are in the same folder as a file shown in the search result?

Post by Biff »

Ah, sorry, now I see, you have to add in the search field
parent:
and after (without space) the file path (without file name / extension).
Like this (I have the protable version)
parent:J:\Programme\Everything

This shows all the items in the folder:
Image

And it seems as if paths / items having a space need to be put in "" (respectively get one at the beginning of the path at least, so between the : and the drive letter)? Otherwise nothing is shown?

But - sorry again - I do not get it to work yet for indexes of drives not being connected.
void
Developer
Posts: 16748
Joined: Fri Oct 16, 2009 11:31 pm

Re: Show all the files which are in the same folder as a file shown in the search result?

Post by void »

And it seems as if paths / items having a space need to be put in "" (respectively get one at the beginning of the path at least, so between the : and the drive letter)? Otherwise nothing is shown?
Correct, you will need to escape spaces with double quotes: ""

For example:

parent:"C:\Program Files\Everything\"


Note the trailing \ is not required.

The double quotes can be omitted if there's no space, for example:

parent:c:\everything


But - sorry again - I do not get it to work yet for indexes of drives not being connected.
Everything will only search files/folders in your index.
If the files/folders are in your index and offline, the parent: search should still work.
The context menu item trick from above will not work for offline files/folders.

Please make sure your NTFS volumes are included in your Everything index:
  • In Everything, from the Tools menu, click Options.
  • Click the NTFS tab.
  • For each NTFS volume listed:
    • Check Include in database.
  • Click OK.
To add your non-NTFS volumes to your Everything index:
  • In Everything, from the Tools menu, click Options.
  • Click the Folders tab.
  • Click Add....
  • Select your volume and click OK.
  • Click OK.
Biff
Posts: 1158
Joined: Mon May 25, 2015 7:09 am

Re: Show all the files which are in the same folder as a file shown in the search result?

Post by Biff »

Please make sure your NTFS volumes are included in your Everything index:
Yes, they are all indexed (if I find an item the usual way on a disconnected drive, they are indexed, I assume).

But I cannot manage it to show all the items in a folder like I can on connected drives...ah, now it works, no idea what mistake I made.

A field for comments / notices here would be great (for example how to do a search like this one):
Image

Thank you very much!
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Show all the files which are in the same folder as a file shown in the search result?

Post by NotNull »

And yet another option:
  • Go to Menu:Tools > Options > General > Context Menu
  • From the Context Menu Items, select Copy Path to Clipboard
  • Choose either Show this item or Show this item when the Shift key is down for this item
  • Click the OK button
  • Go to Menu:Tools > Options > General > Results
  • Enable Double quote copy as path
  • OK

From now on you can :
  • Right-click (or shift + right-click; depending on your choice earlier) your file
  • Select Copy Path to Clipboard
  • Paste the Path in the search bar. The path will be in double quotes.
Biff
Posts: 1158
Joined: Mon May 25, 2015 7:09 am

Re: Show all the files which are in the same folder as a file shown in the search result?

Post by Biff »

Ah yes, that is good. Many thanks!
Post Reply