Hi,
I am using content: quite often and would like to shorten it..
So I created a filter containing "content:" with the Macro of "c".
Now when I type c: content is active, but when I type what content to search for, it just searches in the filenames as normal
So I want the search ".txt c:morten" to act as ".txt content:morten" instead it acts as ".txt content: morten"
Am I going about this the wrong way?
What is the correct way to create an 'alias' for content:?
---
Regards
Morten A. Steien
Q: Creating a shortcut for "content:"?
Re: Q: Creating a shortcut for "content:"?
Everything 1.5 has a new search command, /define, which is ideal for creating aliases/shortcut.
However, c: might not be the best alias -- or any one-letter alias for that matter -- as the they also refer to drive letters.
To create an alias cc for content:
To show a list of all aliases:
Type the following in the addressbar and press ENTER:
The list will be shown in the statusbar. Items are separated by a semicolon.
To show the definition of the cc alias:
Type the following in the addressbar and press ENTER:
The definition will be shown in the statusbar
To remove the cc: alias:
Type the following in the addressbar and press ENTER:
The result will be shown in the statusbar
/undef
P.S. Don't forget to remove your filter
However, c: might not be the best alias -- or any one-letter alias for that matter -- as the they also refer to drive letters.
To create an alias cc for content:
- Type or paste the following in the search bar and press ENTER
The result of that command will be shown in the statusbar for a couple of seconds
Code: Select all
/define cc=content:
- Done
.txt cc:morten
To show a list of all aliases:
Type the following in the addressbar and press ENTER:
/define
The list will be shown in the statusbar. Items are separated by a semicolon.
To show the definition of the cc alias:
Type the following in the addressbar and press ENTER:
/define cc
The definition will be shown in the statusbar
To remove the cc: alias:
Type the following in the addressbar and press ENTER:
/undef cc
The result will be shown in the statusbar
/undef
P.S. Don't forget to remove your filter
Re: Q: Creating a shortcut for "content:"?
Just about your last word ("filter"). Can be created a working filter for "content:"? Like:
Re: Q: Creating a shortcut for "content:"?
To create a content filter:
- In Everything, from the Search menu, click Organize filters....
- Select your content filter and click Edit.
- Change the Search to: content:search:
- Change the Macro to: c<search>
- Click OK.
Re: Q: Creating a shortcut for "content:"?
Wonderful! That works perfectly!!
I do prefer the Filter option as it is more 'visible'
BTW I was trying to find a description in the documentation for how the "search:" and "<search>" part of the filter works but I was not able to find it.
Could you point me to the correct section? I am just curious to learn more about the syntax.
I do prefer the Filter option as it is more 'visible'
BTW I was trying to find a description in the documentation for how the "search:" and "<search>" part of the filter works but I was not able to find it.
Could you point me to the correct section? I am just curious to learn more about the syntax.
Re: Q: Creating a shortcut for "content:"?
Thanks Void. It works! (...still to figure out how to use the Macro)
Re: Q: Creating a shortcut for "content:"?
There's no official support for macro parameters.
The macro syntax is:
marco-name<parameter-name>
The filter's search can recall the captured parameter with parameter-name:
For example:
c:abc
abc is stored in parameter-name.
Any references to parameter-name: are replaced with: abc
The entire macro is substituted with:
content:abc
The macro syntax is:
marco-name<parameter-name>
The filter's search can recall the captured parameter with parameter-name:
For example:
c:abc
abc is stored in parameter-name.
Any references to parameter-name: are replaced with: abc
The entire macro is substituted with:
content:abc