Search for filename in Everything from context menu

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
XMCQCX
Posts: 2
Joined: Sat Jan 23, 2021 10:18 am

Search for filename in Everything from context menu

Post by XMCQCX »

Hi,
I want to add a "Search for this filename in Everything" to the right-click context menu.
I'm only able to output the full path in the search box.

"C:\Program Files\Everything\Everything.exe" -search "%1"
Result:
C:\Users\MC\Desktop\New folder (2)\New Text Document.txt

"C:\Program Files\Everything\Everything.exe" -path "%1"
Result:
"C:\Users\MC\Desktop\New folder (2)\New Text Document.txt\"

How to only output the filename in the search box ?
void
Developer
Posts: 16748
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search for filename in Everything from context menu

Post by void »

Please try the following call:

"C:\Program Files\Everything\Everything.exe" -name-part "%1"

https://www.voidtools.com/support/everything/command_line_options/#-name-part

Add Search Everything context menu item to all files
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Search for filename in Everything from context menu

Post by NotNull »

Take a look here

(It even uses your exact "Search for filename in Everything" :))
XMCQCX
Posts: 2
Joined: Sat Jan 23, 2021 10:18 am

Re: Search for filename in Everything from context menu

Post by XMCQCX »

void wrote: Sat Jan 23, 2021 11:05 am Please try the following call:

"C:\Program Files\Everything\Everything.exe" -name-part "%1"

https://www.voidtools.com/support/everything/command_line_options/#-name-part

Add Search Everything context menu item to all files
NotNull wrote: Sat Jan 23, 2021 11:08 am Take a look here

(It even uses your exact "Search for filename in Everything" :))
Thanks guys for the help ! These commands are not working.

"C:\Program Files\Everything\Everything.exe" -name-part "%1"
Result:
nopath:wfn:"New Text Document.txt"

"C:\Program Files\Everything\Everything.exe" -filename "%1"
Result:
"C:\Users\MC\Desktop\New Text Document.txt"

But I was able to make it work with an autohotkey script !

Code: Select all

Clipboard :=
Send ^c
Clipwait
SplitPath, Clipboard,,,, fileNameNoEXT
clipboard := fileNameNoEXT
run , "C:\Program Files\Everything\Everything.exe" -search "%Clipboard%"
clipboard := store
store =
return
This one when some text is selected:

Code: Select all

ENTER HOTKEY HERE::
clipboard := ""  ; Start off empty to allow ClipWait to detect when the text has arrived.
Send ^c
ClipWait  ; Wait for the clipboard to contain text.
Run , "C:\Program Files\Everything\Everything.exe" -search "%Clipboard%"
clipboard := store
store =
return
Post Reply