add param support for predefined search

Here you can propose new features, make suggestions etc.

Moderators: sheep, Hacker, Stefan2, white

Post Reply
User avatar
dindog
Senior Member
Senior Member
Posts: 277
Joined: 2010-10-18, 07:41 UTC

add param support for predefined search

Post by *dindog »

it's useful to add predefined search some placeholder and input when it's called when selected (in dialog) or as a parameters in internal command internal loadsearch"

For example, I have a plugin name "AGE" which can calculate files created, modified, accessed time by now. It's really useful for backup file by searching files' created or modified since xx days ago.

But the time elapsed, e.g. xx days, is a variable depend on situation. I suggest a predefined search with params should be implemented, which mean only the placeholder params prompted for user input, or by command like

Code: Select all

 loadsearch ageInDays 10
With current tc, if I has a predefined search type like "7 days ago doc or txt", I want to filter "3 days ago doc or txt", I either set a new search, or load the "7 days ago doc or txt" and set the created & modified time to 3 days ago in plugin setting.

User avatar
petermad
Power Member
Power Member
Posts: 9598
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Re: add param support for predefined search

Post by *petermad »

And what if several rules are used in the Plugins Tab - which one should the "10" value be used with?
License #524
Danish Total Commander Translator
TC 9.51 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 (1909) 64bit, 'Everything' 1.4.1.965 (x64)
TC 3.0 on Android 6.0
Get:
Extended Total Commander Menus | TC Languagebar | TC Dark Help | PHSM-Calendar

User avatar
nsp
Power Member
Power Member
Posts: 1264
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: add param support for predefined search

Post by *nsp »

petermad wrote:
2020-01-12, 12:10 UTC
And what if several rules are used in the Plugins Tab - which one should the "10" value be used with?
The proposal would be complete if a naming convention to number parameters and map to field is also in place !
%1 %2 %3 .... as unique parameter of a field could indicate which values goes where ...

User avatar
dindog
Senior Member
Senior Member
Posts: 277
Joined: 2010-10-18, 07:41 UTC

Re: add param support for predefined search

Post by *dindog »

petermad wrote:
2020-01-12, 12:10 UTC
And what if several rules are used in the Plugins Tab - which one should the "10" value be used with?
yes, placeholder as nsp said. In fact, the example show above mentioned plugin "Age", "created time" and "modified time" are two different fields, when I meant to backup new files, last 10 days "new files", may be new created or recent modified... two field, one placeholder, done. In the traditional way, I need to loadsearch, then change two fields.

Post Reply