Filter for content, how to mimic the extended search version?

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
abr01
Posts: 85
Joined: Tue May 01, 2018 4:57 pm

Filter for content, how to mimic the extended search version?

Post by abr01 »

Using content:searchitem works from the search field. However, i'd like to use a filter, that has the content: argument, but if i type the item into the search field, no results are returned. Is there a way to use a function or filter, that only requires the query in the search field?
void
Developer
Posts: 15443
Joined: Fri Oct 16, 2009 11:31 pm

Re: Filter for content, how to mimic the extended search version?

Post by void »

To create a filter to search file content with the text specified in the search box:
  • In Everything, from the Search menu, click Add to filters....
  • Change the Name to: Content
  • Change the Search to: content:search:
  • Change the Macro to: mycontentmacro<search>
  • Click OK.
Please note if you activate this filter, Everything will try to find content in all files...

Enabling Tools -> Options -> Results -> Hide results when the search is empty might be beneficial.
abr01
Posts: 85
Joined: Tue May 01, 2018 4:57 pm

Re: Filter for content, how to mimic the extended search version?

Post by abr01 »

Thanks. It works well!
Post Reply