Select/activate saved search via toolbar command [9.0a]

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Beano
Junior Member
Junior Member
Posts: 71
Joined: 2006-02-18, 10:55 UTC

Select/activate saved search via toolbar command [9.0a]

Post by *Beano »

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.
Last edited by Beano on 2017-03-17, 13:52 UTC, edited 1 time in total.
User avatar
Hacker
Moderator
Moderator
Posts: 13052
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Beano,
Which toolbar command(s) do I use for this?
F1 wrote:10. LOADSEARCH saved_search_name opens search function with saved search.
HTH
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Beano
Junior Member
Junior Member
Posts: 71
Joined: 2006-02-18, 10:55 UTC

Post by *Beano »

LOADSEARCH opens the search box, I don't want that. I want it used/activated.
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

There is no command that loads AND STARTS search, only LOADSEARCH that loads it.
User avatar
milo1012
Power Member
Power Member
Posts: 1158
Joined: 2012-02-02, 19:23 UTC

Re: Select/activate saved search via toolbar command [9.0a]

Post by *milo1012 »

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.

Code: Select all

_preset1
(make sure you clear the "Search in:" field before saving it)
Create a new user command (em_), which has the command

Code: Select all

SELECTFILES >_preset1
Save it as e.g.

Code: Select all

em_usercmd1
Now create your main button with the command:

Code: Select all

em_usercmd1,cm_ShowOnlySelected,cm_ClearAll
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

Code: Select all

CD >_preset1
though you'd have to manually switch to a normal/unfiltered view after that.
TC plugins: PCREsearch and RegXtract
Beano
Junior Member
Junior Member
Posts: 71
Joined: 2006-02-18, 10:55 UTC

Post by *Beano »

It's simply generic file date filters, no other search option or location.

I'll look into your suggestion later, had just hoped I could use date filters an easier way.

Thank you.
Post Reply