Multiple Macros for 1 Filter/Bookmark

Have a suggestion for "Everything"? Please post it here.
Post Reply
LoydsPinkFloydVoid
Posts: 1
Joined: Thu Sep 29, 2022 10:34 pm

Multiple Macros for 1 Filter/Bookmark

Post by LoydsPinkFloydVoid »

Hi, i want to suggest the ability to use multiple macros for 1 filter or 1 bookmark. It would save so much time from needing to create multiple filters for the same search but using a different macro. As it is now, we cant even duplicate macros/bookmarks so I need to type in the entire thing each time. They can be separated with a symbol such as ';' like when separating file extensions. An example would be like:

Filter Name:
Example Filter

Search:
<filter1:search:|filter2:search:> !search:.txt

Macro:
ef<search>;example<search>;examplefilter<search>

Other Possible Macro Forms:
Escaped Separator:
ef\;example\;examplefilter

Or Operator:
ef|example|examplefilter

Double Or Operator:
ef||example||examplefilter

Simplified Version of 1st Macro Example:
(ef|example|examplefilter)<search>

Macros & Search Keyword in Separate Boxes
Search: <filter1:search:|filter2:search:> !search:.txt
Macro: ef;example;examplefilter
Search Keyword: search

Using a Global Search Keyword: (Removes the need to enter a keyword in the Macro box, in this case it's '{search}')
Search: <filter1:{search}|filter2:{search}> !{search}.txt
Macro: ef;example;examplefilter


Thanks!
void
Developer
Posts: 16753
Joined: Fri Oct 16, 2009 11:31 pm

Re: Multiple Macros for 1 Filter/Bookmark

Post by void »

Multiple macro support is on my TODO list.
Thanks for the suggestion.

I would like to see multiple macros for some of the default filters, eg: pic;img;image;picture


For now, please try adding a hidden macro:
  • In Everything, type in the following search and press ENTER:
    /define ef=examplefilter:
    where ef is your new macro and examplefilter: is an existing macro.
/define
RySearcher
Posts: 4
Joined: Thu Jun 23, 2022 10:04 pm

Re: Multiple Macros for 1 Filter/Bookmark

Post by RySearcher »

Having the ability to create a filter that is based on multiple other filters (i.e., macros) would be really powerful.

I'm imagining a filter such as audio:|zip:|pic: to show only the files that are returned when using the "audio:", "zip:", and "pic:" filters (i.e., macros)
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Multiple Macros for 1 Filter/Bookmark

Post by NotNull »

RySearcher wrote: Thu Jun 29, 2023 5:22 pm m imagining a filter such as audio:|zip:|pic: to show only the files that are returned when using the "audio:", "zip:", and "pic:" filters (i.e., macros)
That should be possible already.
What happens when setting the search in the search bar to
audio:|zip:|pic:
?
(it should show audio-, zip - as well as image-files in the resultlist)
That search can be tied to a new macro using a filter or using the /define search command (Everything 1.5):

Code: Select all

/define myfiles=audio:|zip:|pic:
Post Reply