serach by both name and content by default like explorer

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
amymor
Posts: 3
Joined: Mon Jul 18, 2022 9:37 pm

serach by both name and content by default like explorer

Post by amymor »

Hello
I want to use everything instead of explorer search (because search always opens in the background and consumes about 50-150 MB of memory). I know I can search for name and content using content:test|test but it's very annoying. For example, in Explorer when I want to search for TrustedInstaller or whatever, I can do it with one click on the search bar and just one type. But for everything after two clicks (rigt-click -> search Everthing) I have to type the whole word twice and an additional content: filter. So it would be content:trustedinstaller|trustedinstaller instead of simple trustedinstaller.
Is there a way to search by name and content by default like explorer? Also, if other search software can do this, please mention them.
Thanks
void
Developer
Posts: 16680
Joined: Fri Oct 16, 2009 11:31 pm

Re: serach by both name and content by default like explorer

Post by void »

Please try creating a filter:
  • In Everything, from the Search menu, click Add to filters....
  • Change the Name to: Filename or Content
  • Change the Search to: <search:> | <content:search:>
  • Change the Macro to: fc<search>
  • Click OK.
Now you can use fc:test to search filenames or content for test.

This filter can also be activated under the search menu so you only need to type: test

Filters can be activated from the Search menu, Filter bar (View -> Filters), right clicking the status bar, filter macro or filter keyboard shortcut.
amymor
Posts: 3
Joined: Mon Jul 18, 2022 9:37 pm

Re: serach by both name and content by default like explorer

Post by amymor »

void wrote: Tue Jul 19, 2022 5:16 am Please try creating a filter:
  • In Everything, from the Search menu, click Add to filters....
  • Change the Name to: Filename or Content
  • Change the Search to: <search:> | <content:search:>
  • Change the Macro to: fc<search>
  • Click OK.
Now you can use fc:test to search filenames or content for test.

This filter can also be activated under the search menu so you only need to type: test

Filters can be activated from the Search menu, Filter bar (View -> Filters), right clicking the status bar, filter macro or filter keyboard shortcut.
I created 3 files and renamed one to test and typed test to another one and the last file remains empty. So if I search for test, it should show test.txt and one with the test in it. I tried your method, when i enable Everything filter and type fc:test, it works but if I enable Filename or Content filter and then type test, it only shows me test.txt.
Capture0.PNG
Capture0.PNG (15.09 KiB) Viewed 2186 times
Capture1.PNG
Capture1.PNG (20.06 KiB) Viewed 2186 times
Capture2.PNG
Capture2.PNG (18.79 KiB) Viewed 2186 times
void
Developer
Posts: 16680
Joined: Fri Oct 16, 2009 11:31 pm

Re: serach by both name and content by default like explorer

Post by void »

Everything will try to find "C:\Users\user\Desktop\New folder\" in the content.

When the Filename or Content filter is active, only one search term is supported.

Use fc: for more control.


If you enable content indexing, always searching for content is possible with #replaceterms:
amymor
Posts: 3
Joined: Mon Jul 18, 2022 9:37 pm

Re: serach by both name and content by default like explorer

Post by amymor »

void wrote: Tue Jul 19, 2022 6:34 am Everything will try to find "C:\Users\user\Desktop\New folder\" in the content.

When the Filename or Content filter is active, only one search term is supported.

Use fc: for more control.


If you enable content indexing, always searching for content is possible with #replaceterms:
Thank you for your response.

I noticed that when I enable content indexing, the memory usage is very high (about 1-2 GB) Even when I exclude many extensions and folders and set the size to 500 KB, the memory usage for the search tool is still high . Also, the Everything-1.5a.db file becomes 20 times larger. I know the memory usage and the db file used for indexing, and in this case it is normal to use a lot of memory and large database size. But I just don't like it.

I found another solution without requiring content indexing, as you know when Everything filter is active I can search for both name and contet by typing fc: so i just add -s fc: to the context menu command in the registry (HKEY_CLASSES_ROOT\Directory\background\shell\Search Everything 1.5 a...\command).
The above command automatically types fc:

I suggest you add edit ability for the explorer context menu in the future so we can easily add many useful commands using Everything gui itself.
Last edited by amymor on Thu Aug 04, 2022 2:53 pm, edited 1 time in total.
void
Developer
Posts: 16680
Joined: Fri Oct 16, 2009 11:31 pm

Re: serach by both name and content by default like explorer

Post by void »

Customization of the right click context menu for files/folders in Everything is on my TODO list.

Thank you for the suggestion.
Post Reply