Add Search Everything context menu item to all files

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

Add Search Everything context menu item to all files

Post by void » Wed Jan 25, 2017 3:01 pm

Image

Image

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: 96
Joined: Thu Sep 25, 2014 7:57 pm

Re: Add Search Everything context menu item to all files

Post by SuperDude » Wed Jan 25, 2017 7:12 pm

@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
Site Admin
Posts: 4998
Joined: Fri Oct 16, 2009 11:31 pm

Re: Add Search Everything context menu item to all files

Post by void » Thu Jan 26, 2017 10:59 am

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
Site Admin
Posts: 4998
Joined: Fri Oct 16, 2009 11:31 pm

Re: Add Search Everything context menu item to all files

Post by void » Fri Jan 27, 2017 11:33 am

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: 96
Joined: Thu Sep 25, 2014 7:57 pm

Re: Add Search Everything context menu item to all files

Post by SuperDude » Fri Jan 27, 2017 12:17 pm

Thank you, David.

Post Reply