INI setting to give the default search functions a custom name?

Discussion related to "Everything" 1.5 Alpha.
Post Reply
Jose-Santiago3333
Posts: 10
Joined: Sat Aug 13, 2022 8:19 pm

INI setting to give the default search functions a custom name?

Post by Jose-Santiago3333 »

I was reading how to do this the other day on the forum. Now I cannot find it.
I went through INI release page and did not find anything certain and I search the forum too

For example I want to rename the search function alternate-data-stream-ansi: to adsi:
Can anyone point me to the INI setting that will let me do this?
I know you can just a create a filter with a Macro but I really want to do it this way. Thanks
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: INI setting to give the default search functions a custom name?

Post by NotNull »

I think you are referring to the /define and /undef search commands?


/define <name>=<search>
Define a macro.
For example:
/define foo=bar
When searching for foo: it is now replaced with bar


/undef <name>
Undefine a macro.
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

Re: INI setting to give the default search functions a custom name?

Post by raccoon »

So if you want alternate-data-stream-ansi: to become adsi:, use this command in the search bar:

/define adsi=alternate-data-stream-ansi:

(note that the substitution name you are defining does not need a colon, and the original function does need a colon, as shown above)

((note that alternate-data-stream-ansi: already has the built-in alias of ads-ansi: or just adsansi:))
Jose-Santiago3333
Posts: 10
Joined: Sat Aug 13, 2022 8:19 pm

Re: INI setting to give the default search functions a custom name?

Post by Jose-Santiago3333 »

Excelent my friends! that work for me, thanks!
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: INI setting to give the default search functions a custom name?

Post by NotNull »

:thumbsup:


FWIW:
those settings end up in macros.csv in the %APPDATA%\Everything folder.
Just in case you desperately want to edit something ... ;) :D


(macros.csv is likely called macros-1.5a.csv on your system)
Post Reply