add param support for predefined search
Posted: 2020-01-12, 05:18 UTC
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
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.
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