Running Filter with parameter directly

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
sk2107
Posts: 385
Joined: Sun Aug 07, 2022 8:48 pm

Running Filter with parameter directly

Post by sk2107 »

Hello,
sometimes I need to run a filter for one time without defining it in filter and this filter has parameters.

Here is an example (which is just an example to explain the idea):
addcolumn:a a-label:="Last "$param:" chars" a:=regexextract($name:,".{"$param:"}$")
Now I added a filter called LastN and use it as LastN:10 for example. I know that I can run it as
addcolumn:a a-label:="Last 10 chars" a:=regexextract($name:,".{10}$")
But sometimes I have some other filters but rarely using them , so I want to copy and paste and use them using :10 instead of defining them in filters

I wish there is an option in "Find Filter" screen to "Paste" the selected filter inside the Filter input box which will be very helpful as I have many filters that makes it hard to remember all with syntax.


Thanks a lot
Regards
void
Developer
Posts: 19839
Joined: Fri Oct 16, 2009 11:31 pm

Re: Running Filter with parameter directly

Post by void »

I will look into adding a right click context menu (like in Search History/Ctrl+H) to:

Activate filter
Set the search to the filter search.
Copy filter Search

Thank you for the suggestion.
sk2107
Posts: 385
Joined: Sun Aug 07, 2022 8:48 pm

Re: Running Filter with parameter directly

Post by sk2107 »

That would be great.

Thanks a lot

Best Regards
void
Developer
Posts: 19839
Joined: Fri Oct 16, 2009 11:31 pm

Re: Running Filter with parameter directly

Post by void »

Everything 1.5.0.1397a adds support for Filter Select -> Right-click -> Activate filter and Copy Search.

I added Copy Search to bookmarks dialogs too.
sk2107
Posts: 385
Joined: Sun Aug 07, 2022 8:48 pm

Re: Running Filter with parameter directly

Post by sk2107 »

thank you

Best Regards
Post Reply