search file shortcut

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
Nick Riviera
Posts: 4
Joined: Mon Jul 03, 2023 5:58 am

search file shortcut

Post by Nick Riviera »

Hello,
Is there a shortcut key to search for a file?
e.g. click on a file then use a shortcut for search this with "Everythings" ?
I know there is such a shortcut because I know that once, by chance, I selected a file and then i pressed a combination key and "Everythings" has opened..
Thank you
void
Developer
Posts: 16745
Joined: Fri Oct 16, 2009 11:31 pm

Re: search file shortcut

Post by void »

Everything doesn't have an option to search for the selected file.



Please consider setting a Hotkey to show Everything and search for the active folder from Windows Explorer:

Set a Hotkey to show an Everything window:
  • In Everything, from the Tools menu, click Options.
  • Click the Keyboard tab on the left.
  • To the right of Show Window Hotkey, press a new keyboard shortcut.
  • Click OK.


To have Everything search for the active folder in Windows Explorer when pressing your hotkey:
  • Copy and paste the following into your Everything search box:
    /hotkey_explorer_path_search=1
  • Press ENTER in your Everything search box.
  • If successful, hotkey_explorer_path_search=1 is shown in the status bar for a few seconds.


Please consider creating a right click/context menu item for all items:
  • From the Start menu, search for:
    regedit
  • Click Registry Editor.
  • In the Registry Editor, navigate to:
    HKEY_CLASSES_ROOT\*
  • Create a new Key called:
    shell
  • navigate to:
    HKEY_CLASSES_ROOT\*\shell
  • Create a new Key called:
    Find 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 Find in Everything...
Nick Riviera
Posts: 4
Joined: Mon Jul 03, 2023 5:58 am

Re: search file shortcut

Post by Nick Riviera »

does only work for folders?
not for files .txt, .pdf..etc ?
thanks
[1]07-03-2023.jpg
[1]07-03-2023.jpg (56.76 KiB) Viewed 2804 times
horst.epp
Posts: 1447
Joined: Fri Apr 04, 2014 3:24 pm

Re: search file shortcut

Post by horst.epp »

I have a button in Total Commander which searches with Everything for all occurrences of selected files or dirs.
The command line is:
C:\Tools\Everything\Everything64.exe -s nopath:exact:#quote:#[basename:"%S1"#]:
%S1 stand for the current selection in TC.
You can make similar shortcuts for other tools or registry entries.
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: search file shortcut

Post by NotNull »

Nick Riviera wrote: Mon Jul 03, 2023 7:11 am does only work for folders?
not for files .txt, .pdf..etc ?
Your screenshot shows the registry entries that are needed for folders ( Computer\HKEY_CLASSES_ROOT\Folder )

For files -- like txt pdf files -- you need to follow the instructions provided by @void and add entries under Computer\HKEY_CLASSES_ROOT\*
Nick Riviera
Posts: 4
Joined: Mon Jul 03, 2023 5:58 am

Re: search file shortcut

Post by Nick Riviera »

I redid the registry..works but it search for entire path
which cmd is for search only de filename over all drives in my network? e.g "test.txt"
I tried many commands ..
-parentpath "%1" -select "%1"
-filename "%1" -select "%1"
-search "%1" -select "%1"
-name-part "%1"

but it doesn't work..he search only for full path

Everything Version 1.4.1.1023 (x64)
void
Developer
Posts: 16745
Joined: Fri Oct 16, 2009 11:31 pm

Re: search file shortcut

Post by void »

The following should work:

-name-part "%1"

This command line option does prefix your search with nopath:wfn: to help find your name part.



Is Everything indexing your network drives?
-Please make they are included under Tools -> Options -> Folders.
Nick Riviera
Posts: 4
Joined: Mon Jul 03, 2023 5:58 am

Re: search file shortcut

Post by Nick Riviera »

void wrote: Tue Jul 04, 2023 6:54 am Is Everything indexing your network drives?
-Please make they are included under Tools -> Options -> Folders.
yes, they are indexed
now works whit -name-part "%1"
thank you!
Post Reply