I have several saved searches (use it for file age filtering etc.) and want to make the most used ones available via the toolbar buttons.
I can use the LOADSEARCH command can load a saved search and open the search dialog but I need to use/activate a saved search.
Which toolbar command(s) do I use for this?
Thanks in advance.
/Beano
EDIT: "LOADSEARCH", not "OPENSEARCH". Sorry.
Select/activate saved search via toolbar command [9.0a]
Moderators: white, Hacker, petermad, Stefan2
Select/activate saved search via toolbar command [9.0a]
Last edited by Beano on 2017-03-17, 13:52 UTC, edited 1 time in total.
Re: Select/activate saved search via toolbar command [9.0a]
2Beano
Well, it depends on what your search is doing: is it a fixed search location or just general search parameters for any location?
In the latter case, one thing you could do is working with combined internal commands:
Save your search preset to a distinctive name, e.g.
(make sure you clear the "Search in:" field before saving it)
Create a new user command (em_), which has the command
Save it as e.g.
Now create your main button with the command:
Now whenever you are in a location you want to search in the current dir level only: simply press the button.
When you also want to search for files in sub-dirs: use Ctrl+B (branch view) beforehand, then use the button.
Disadvantage of the latter method: you can't find dirs.
You could also try experimenting with the command
though you'd have to manually switch to a normal/unfiltered view after that.
Well, it depends on what your search is doing: is it a fixed search location or just general search parameters for any location?
In the latter case, one thing you could do is working with combined internal commands:
Save your search preset to a distinctive name, e.g.
Code: Select all
_preset1
Create a new user command (em_), which has the command
Code: Select all
SELECTFILES >_preset1
Code: Select all
em_usercmd1
Code: Select all
em_usercmd1,cm_ShowOnlySelected,cm_ClearAll
When you also want to search for files in sub-dirs: use Ctrl+B (branch view) beforehand, then use the button.
Disadvantage of the latter method: you can't find dirs.
You could also try experimenting with the command
Code: Select all
CD >_preset1
TC plugins: PCREsearch and RegXtract