search by sample

Have a suggestion for "Everything"? Please post it here.
Post Reply
Markus1969
Posts: 4
Joined: Sat Dec 19, 2020 10:41 pm

search by sample

Post by Markus1969 » Sat Dec 19, 2020 10:47 pm

Would it be posible to drag and drop a file into everything and find all ocurrences of this file in all drives?
even if the name of the file varies

void
Site Admin
Posts: 6075
Joined: Fri Oct 16, 2009 11:31 pm

Re: search by sample

Post by void » Sat Dec 19, 2020 10:51 pm

Currently no, sorry.

A option to do this is in development.

For now, you may wish to enable dropping files on the search box:
  • In Everything, type in the following search and press ENTER:
    /search_edit_drag_accept_files=1
  • If successful you should see search_edit_drag_accept_files=1 in the status bar for a few seconds.
  • You can now drag files onto the search box in Everything.
  • Unfortunately, this will currently search for the exact file. You will need to manually modify the search to include only the part of interest.

NotNull
Posts: 2691
Joined: Wed May 24, 2017 9:22 pm

Re: search by sample

Post by NotNull » Sat Dec 19, 2020 11:09 pm

You probably drag the file from File Explorer or another file manager?

In that case, I just wrote an alternative:
- right-click your file
- Select "Search for this filename in Everything" from the context menu


How?
  • Save this text as SearchFile.reg somewhere on your system
  • Edit both paths to Everything.exe to match your situation
    (currently C:\Tools\Everything\everything.exe )
  • Save the file
  • Double-click it
  • Done
From now on you can right-click any file and search for it in Everything.

Note: will not work if you run Everything as dministrator (although there are workarounds for that)

SearchFile.reg

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Classes\*\Shell\SearchFileName]
"MUIVerb"="Search for this filename in Everything"
"Icon"="\"C:\\Tools\\Everything\\everything.exe\""

[HKEY_CURRENT_USER\Software\Classes\*\Shell\SearchFileName\command]
@="\"C:\\tools\\Everything\\Everything.exe\" -namepart \"%1\""

Markus1969
Posts: 4
Joined: Sat Dec 19, 2020 10:41 pm

Re: search by sample

Post by Markus1969 » Sun Dec 20, 2020 5:03 am

void wrote:
Sat Dec 19, 2020 10:51 pm
Currently no, sorry.

A option to do this is in development.
still it's great it would be a choice soon

Markus1969
Posts: 4
Joined: Sat Dec 19, 2020 10:41 pm

Re: search by sample

Post by Markus1969 » Sun Dec 20, 2020 5:07 am

NotNull wrote:
Sat Dec 19, 2020 11:09 pm
You probably drag the file from File Explorer or another file manager?

In that case, I just wrote an alternative:
- right-click your file
- Select "Search for this filename in Everything" from the context menu


How?
  • Save this text as SearchFile.reg somewhere on your system
  • Edit both paths to Everything.exe to match your situation
    (currently C:\Tools\Everything\everything.exe )
  • Save the file
  • Double-click it
  • Done
From now on you can right-click any file and search for it in Everything.

Note: will not work if you run Everything as dministrator (although there are workarounds for that)

SearchFile.reg

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Classes\*\Shell\SearchFileName]
"MUIVerb"="Search for this filename in Everything"
"Icon"="\"C:\\Tools\\Everything\\everything.exe\""

[HKEY_CURRENT_USER\Software\Classes\*\Shell\SearchFileName\command]
@="\"C:\\tools\\Everything\\Everything.exe\" -namepart \"%1\""
Done!!! while the new option come up. thanks

Markus1969
Posts: 4
Joined: Sat Dec 19, 2020 10:41 pm

Re: search by sample

Post by Markus1969 » Sun Dec 20, 2020 5:41 am

WOW ITS A GREAT NotNull :idea: IT WORKS NICELY

NotNull
Posts: 2691
Joined: Wed May 24, 2017 9:22 pm

Re: search by sample

Post by NotNull » Sun Dec 20, 2020 11:05 am

You're welcome!


BTW, I just noticed that it doesn't work on *all* files:

If you select a shortcut (.LNK file) , it will operate on the target of that shortcut, instead of the shortcut itself.
Doesn't look like a big deal to me; just mentioning it ...

Post Reply