search by sample

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

search by sample

Post by Markus1969 »

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
Developer
Posts: 17166
Joined: Fri Oct 16, 2009 11:31 pm

Re: search by sample

Post by void »

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: 5517
Joined: Wed May 24, 2017 9:22 pm

Re: search by sample

Post by NotNull »

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: 9
Joined: Sat Dec 19, 2020 10:41 pm

Re: search by sample

Post by Markus1969 »

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: 9
Joined: Sat Dec 19, 2020 10:41 pm

Re: search by sample

Post by Markus1969 »

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: 9
Joined: Sat Dec 19, 2020 10:41 pm

Re: search by sample

Post by Markus1969 »

WOW ITS A GREAT NotNull :idea: IT WORKS NICELY
NotNull
Posts: 5517
Joined: Wed May 24, 2017 9:22 pm

Re: search by sample

Post by NotNull »

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: 9
Joined: Sat Dec 19, 2020 10:41 pm

Re: search by sample

Post by Markus1969 »

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: 9
Joined: Sat Dec 19, 2020 10:41 pm

Re: search by sample

Post by Markus1969 »

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: 5517
Joined: Wed May 24, 2017 9:22 pm

Re: search by sample

Post by NotNull »

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
Markus1969
Posts: 9
Joined: Sat Dec 19, 2020 10:41 pm

Re: search by sample

Post by Markus1969 »

I was out for a while! but I'll be trying this out Il leave my comment Right After
Markus1969
Posts: 9
Joined: Sat Dec 19, 2020 10:41 pm

Re: search by sample

Post by Markus1969 »

This is not exactly what I expected but a great feature though, Im checkin' this list out anyway something may come out of there
For more information on these settings. see this and beyond.


What I really like its to find all ocurrences of a file taking in to account its size or maybe its CRC by the way CRC can be a column to be add in details view thats great too.
Question: happens to you that the headings of the columns (everything 1.5a) disappears sometimes?
void
Developer
Posts: 17166
Joined: Fri Oct 16, 2009 11:31 pm

Re: search by sample

Post by void »

Question: happens to you that the headings of the columns (everything 1.5a) disappears sometimes?
What happens?
The column is no longer shown? or the column has zero width? or the column is there with no heading text?

Are you using a bookmark with a column set?
Has a column set been defined in your home search under Tools -> Options -> Home?
Markus1969
Posts: 9
Joined: Sat Dec 19, 2020 10:41 pm

Re: search by sample

Post by Markus1969 »

the columns were all there but no heading texts ,now I update everything it might not happen again
Post Reply