Marco to search in any property

Discussion related to "Everything" 1.5 Alpha.
Post Reply
Laus
Posts: 17
Joined: Sun Jul 04, 2021 11:44 am

Marco to search in any property

Post by Laus »

Hi!

How can I search for a given string in any of the indexed properties?
A replacement for "tags:MyString|comment:MyString|subject:MyString| . . .", something like "property:MyString"

Thanks, Laus
void
Developer
Posts: 16698
Joined: Fri Oct 16, 2009 11:31 pm

Re: Marco to search in any property

Post by void »

Please try creating a filter:
  • In Everything, from the Search menu, click Add to filters.
  • Change the Name to:
    My Property Search
  • Change the Search to:
    tags:search:|comment:search:|subject:search:
  • Change the Macro to:
    property<search>
  • Click OK.
Now, when you search for:
property:"My String"

It is replaced with:
tags:"My String"|comment:"My String"|subject:"My String"
Laus
Posts: 17
Joined: Sun Jul 04, 2021 11:44 am

Re: Marco to search in any property

Post by Laus »

Hi Void,

So your saying Everything will expand a user defined filter anyway before executing the search?
Then it seams easier to me to build the search phrase in a def in my python wrapper for the python SDK.

Thanks, Laus
void
Developer
Posts: 16698
Joined: Fri Oct 16, 2009 11:31 pm

Re: Marco to search in any property

Post by void »

Sorry I missed your reply Laus,


Yes, Everything will expand macros before the search is executed.

If the filter is active, the entire search string is used as the parameter to your macro.
Post Reply