Forgot command-line for hotkey that finds ONLY selected file

Discussion related to "Everything" 1.5 Alpha.
Post Reply
SuperDude
Posts: 221
Joined: Thu Sep 25, 2014 7:57 pm

Forgot command-line for hotkey that finds ONLY selected file

Post by SuperDude »

Everything v1.5.0.1245a (64-bit)

I had CTRL+SHIFT+F2 set as a hotkey that found only a selected file (that is, the exact file name) while excluding any other file(s) that had the selected file's name in their name(s). Can someone please refresh my memory? Thanks!
void
Developer
Posts: 16698
Joined: Fri Oct 16, 2009 11:31 pm

Re: Forgot command-line for hotkey that finds ONLY selected file

Post by void »

This one?

Everything.exe -s exact:"%1"
Last edited by void on Tue Mar 23, 2021 4:33 am, edited 1 time in total.
Reason: added quotes
SuperDude
Posts: 221
Joined: Thu Sep 25, 2014 7:57 pm

Re: Forgot command-line for hotkey that finds ONLY selected file

Post by SuperDude »

When using the following command:

D:\Everything64\Everything64.exe -s exact:%1

... and searching for "Everything 64.exe" -> The following will be shown in the Search box:

exact:D:\Everything64\Everything64.exe

Only that instance of the search term appears in the Results list. I need Everything to find all instances of that search term on all of my indexed drives.

Note: My CTRL+SHIFT+F2 hotkey is a Directory Opus-assigned hotkey (not sure if that is causing your suggested command to fail?)
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: Forgot command-line for hotkey that finds ONLY selected file

Post by NotNull »

Does this work for you?

Code: Select all

Everything64.exe -s exact:#filename:%1
(not sure if it should be %1 or "%1"; will depend on the source (dopus in this case)

#filename: is on of the Search Preprocessor functions (Menu:Help > Search Preprocessor for more information)
SuperDude
Posts: 221
Joined: Thu Sep 25, 2014 7:57 pm

Re: Forgot command-line for hotkey that finds ONLY selected file

Post by SuperDude »

That seems to work for a couple of search files, but now "C:\Windows\system32" is being inserted into the path name for most of the searches I do. For example, searching for "Everything64.exe" works, but "Everything64 - Copy. exe" makes the "Command Line Options" dialog appear.

Proccess Hacker shows the Everything service's current directory is "C:\Windows\system32" (maybe that's why "C:\Windows\system32" is being inserted into some search terms?

For now, I am going to use this command line:

D:\Everything64\Everything64.exe -name -part "%1" -s file:

... it finds what I'm looking for (along with other files).

Thanks for your help. Appreciate it!
void
Developer
Posts: 16698
Joined: Fri Oct 16, 2009 11:31 pm

Re: Forgot command-line for hotkey that finds ONLY selected file

Post by void »

You will need to quote "%1" otherwise Everything will interpret text after a space as a file, and add that filename to your search:

Everything -s file:exact:"%1"

-no need to change if -name-part "%1" works for you.
Post Reply