Add Search Everything context menu item to all files

General discussion related to "Everything".
Post Reply
void
Developer
Posts: 16680
Joined: Fri Oct 16, 2009 11:31 pm

Add Search Everything context menu item to all files

Post by void »





To add the "Search Everything..." context menu item to all files:
  • From the Start menu, click Run... (or press Windows key + R)
  • Enter in: regedit
  • In the Registry Editor, navigate to:
    HKEY_CLASSES_ROOT\*\shell
  • Right click on the right side and click New -> Key.
  • Enter in a name for your menu item, for example: Search Everything...
  • In your new key, right click on the right side and click New -> Key.
  • Enter in the name: command
  • Double click the (Default) value.
  • Set the value data to:
    "C:\Program Files\Everything\Everything.exe" -filename "%1"
    Where C:\Program Files\Everything is the location of your Everything.exe.
  • Click OK.
  • Close the Registry Editor.
If you wish for Everything to search for the path of the file, instead of the actual file, set the (Default) value data to:
"C:\Program Files\Everything\Everything.exe" -parentpath "%1"
SuperDude
Posts: 221
Joined: Thu Sep 25, 2014 7:57 pm

Re: Add Search Everything context menu item to all files

Post by SuperDude »

@void:

Your registry hack seems to only find the file that is selected. Other copies of the selected file located elsewhere are not displayed. I entered everything exactly as you described, and I tested it with Directory Opus and Windows Explorer. Only the selected file was shown in the Everything Search window that pops up.

I am currently using this command-line to find all instances of a selected file:

Code: Select all

"D:\Everything\Everything.exe" -s {file}
I have this command bound to my F7 key (when Directory Opus has the active, focused window). When I select a file or folder, or multiple files and folders, an Everything Search window for each selected file(s)/folder(s) opens, where each window shows me all copies of each item I selected.

If I right-click on a folder in the right-side window pane and press my hotkey (F7), Everything shows all instances of that folder, like this:

Image

My Everything Search registry key looks like this:

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Drive\shell\Search with &Everything]
"Icon"="C:\\ICONS\\Everything.ico"

[HKEY_CLASSES_ROOT\Drive\shell\Search with &Everything\Command]
@="\"D:\\Everything\\Everything.exe\" -path \"%1\""

[HKEY_CLASSES_ROOT\Directory\shell\Search with &Everything]
"Icon"="C:\\ICONS\\Everything.ico"

[HKEY_CLASSES_ROOT\Directory\shell\Search with &Everything\Command]
@="\"D:\\Everything\\Everything.exe\" -path \"%1\""
Note that this is two registry keys combined into one, and my custom icon is displayed in the Everything Search context menu as well. It also has a keyboard shortcut for the context menu entry (the letter E in my case).
void
Developer
Posts: 16680
Joined: Fri Oct 16, 2009 11:31 pm

Re: Add Search Everything context menu item to all files

Post by void »

Your registry hack seems to only find the file that is selected.
That was intended, I'll add a -name-part command line option to search for all files with the same name part of the filename.
void
Developer
Posts: 16680
Joined: Fri Oct 16, 2009 11:31 pm

Re: Add Search Everything context menu item to all files

Post by void »

I've added the -name-part <filename> command line option in Everything 834b or later.

Usage:
Everything.exe -name-part <filename>

Example:
Everything.exe -name-part "C:\Windows\system32\calc.exe"

This will set the search to: wfn:calc.exe
SuperDude
Posts: 221
Joined: Thu Sep 25, 2014 7:57 pm

Re: Add Search Everything context menu item to all files

Post by SuperDude »

Thank you, David.
jon_obvious
Posts: 3
Joined: Thu Oct 10, 2019 7:54 am

Re: Add Search Everything context menu item to all files

Post by jon_obvious »

Example:
Everything.exe -name-part "C:\Windows\system32\calc.exe"

This will set the search to: wfn:calc.exe
So what if i want to set this search to just: calc
Remove the ".exe" part. I have different filetypes with the same name in different folders, would be cool to be able to right click one and find the others.
My registry value is: "C:\Program Files\Everything\Everything.exe" -name-part "%1"
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: Add Search Everything context menu item to all files

Post by NotNull »

In a future major version of Everything there will be a -stem option to search for - in this case - CALC.

For now, you can find a workaround in this thread
Post Reply