Filtermacro parameters

Discussion related to "Everything" 1.5 Alpha.
Post Reply
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Filtermacro parameters

Post by NotNull »

What happened to Filtermacro parameters?

Code: Select all

Filtername = Startwith
Search = startwith:query:
Macro = dummy<query>
In the olden days <query> was the first "word" of the search query, making the rest of the search (second "word" and onwards) a regular search.

1.4 debug log:
search 'startwith:n otepad' filter '' sort 19

1346a (happens to be the most recent portable version on my system):
search 'startwith:n otepad' filter '' sort 5 ascending 0

1373a:
search 'startwith:&PARAMSTART:n otepad&PARAMEND:' filter '' sort 0 ascending 1


1373a no longer produces results (no "notepad.exe"). This breaks a couple of filters here.
I dont mind switching to the new syntax (using $param: in the filter search), but I'm missing an easy way to still be able to use something like "$PARAM1:"and "$PARAM2:" (or "$PARAM3*" to indicate the remaining paramters).
($PARAM1 etc is just an example to show what I mean; hard to explain otherwise)


BTW: As expected, using the macro ("dummy:n otepad") still works in all cases.
void
Developer
Posts: 16745
Joined: Fri Oct 16, 2009 11:31 pm

Re: Filtermacro parameters

Post by void »

I like the idea of $param1: and $param2*:
I will consider these in a future release.



The next alpha update will add support for #param:

#param: will be replaced with the parameter text as is.

For example:

startwith:#param:

=>

startwith:n otepad
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Filtermacro parameters

Post by NotNull »

void wrote: Thu May 02, 2024 8:32 am The next alpha update will add support for #param:
:thumbsup:

EDIT:
The $param2*: idea might be useful for the ELEMENT formula and preprocessor function too.
void
Developer
Posts: 16745
Joined: Fri Oct 16, 2009 11:31 pm

Re: Filtermacro parameters

Post by void »

Everything 1.5.0.1374a adds support for #param:

#param: is replaced with the parameter text as is.

startwith:#param:
=>
startwith:n otepad
Post Reply