aliases for functions

Have a suggestion for "Everything"? Please post it here.
Post Reply
darguedas
Posts: 4
Joined: Tue Mar 29, 2022 2:34 pm

aliases for functions

Post by darguedas »

Hi!

I haven't found a way to define my own aliases for common functions... for example, I do content search in xml files very often, so I end up using function "utf8content:" a lot... (which is a little tedious to write tbqh) and I just wish I could define a custom alias for that function name, such as just "uc:" for example... or well, maybe we don't need the full feature of creating aliases, but just having quick function name alternatives such as those for "dc", "dm" would be so useful for me in this case...

Thank you guys! Your work really rocks!!
void
Developer
Posts: 15507
Joined: Fri Oct 16, 2009 11:31 pm

Re: aliases for functions

Post by void »

Thank you for your feedback,

To create a short macro to search utf8content:
  • In Everything, from the Search menu, click Add to filters....
  • Change the Name to:
    UTF-8 Content
  • Change the Search to:
    utf8content:search:
  • Change the Macro to:
    uc<search>
  • Click OK.
Now you can use uc:"a word or phrase" instead of utf8content:"a word or phrase"
darguedas
Posts: 4
Joined: Tue Mar 29, 2022 2:34 pm

Re: aliases for functions

Post by darguedas »

wonderful, that's exactly what I was looking for!! 😀

as that format for search filter macros is not very obvious, I'd say that this should be a bit better documented somewhere?

either way, thanks a lot, you're great! 🙌
void
Developer
Posts: 15507
Joined: Fri Oct 16, 2009 11:31 pm

Re: aliases for functions

Post by void »

The syntax is shown in the macro tooltip.
This could do with an example.

Please see Filter functions for more information.
Post Reply