search by sample

Have a suggestion for "Everything"? Please post it here.
Post Reply
Markus1969
Posts: 6
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: 6709
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: 2980
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: 6
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: 6
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: 6
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: 2980
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 ...

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

Re: search by sample

Post by Markus1969 » Tue Mar 23, 2021 5:50 am

sometimes I found those small viruses that spread all over hardrives from usb devices and that comes very handy to delete them all ... when a feature like (drag and drop) finding using size as a parameter appears it will be an owesome tool to find those viruses who ramdomly change their names

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

Re: search by sample

Post by Markus1969 » Sun Apr 25, 2021 4:45 pm

A mod for everything 1.5

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Classes\*\Shell\SearchFileName]
"MUIVerb"="Search this w/ Everything"
"Icon"="\"C:\\Program Files\\Everything 1.5a\\Everything64.exe\""

[HKEY_CURRENT_USER\Software\Classes\*\Shell\SearchFileName\command]
@="\"C:\\Program Files\\Everything 1.5a\\Everything64.exe\" -namepart \"%1\""

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

Re: search by sample

Post by NotNull » Sun Apr 25, 2021 6:08 pm

Thanks for sharing, @Markus1969!

I have good news for you: It looks like someone really listened to you as in Everything 1.5 that is possible without these mods.

There are a couple of settings involved:

hdrop_filelist
hdrop_file_format
hdrop_shortcut_target

You can leave hdrop_filelist as is.
hdrop_shortcut_target decides if shortcuts are 'expanded (i.e. the target of the shortcut will be used instaed of the .lnk
(yes, even that got implemented :))

The crucial setting here is hdrop_file_format
You can choose from
  • 0 = Full path and filename. (default)
  • 1 = Basename only.
  • 2 = Full path and filename with exact: search modifier.
  • 3 = Basename only with exact: search modifier.
When you drag "c:\path to\file.txt" to the search bar, 1. will find all filenames with file.txt somewhere in the name and 3. will find all files that are named exactly file.txt.

So in your case, you can:
  • Enter the following in the search bar and press ENTER:

    Code: Select all

    /hdrop_file_format=1
    -or-

    Code: Select all

    /hdrop_file_format=3
  • Start dragging filenames to the search bar. (yes, you can also drag multiple filenames! The search will be for all of them.


    For more information on these settings. see this and beyond.

    Note:
    This is all dedicated to files. Similar settings are available for folders.
    I like the default setting, where you can drag one or more folders to the search bar to limit the results to only these folders

Post Reply