Page 1 of 1
use last TypeFilter when loading search template
Posted: 24 May 2016 13:19
by yusef88
like the behavior when toggle find files, is this configurable?
Re: use last TypeFilter when loading search template
Posted: 03 Jun 2016 07:58
by admin
TypeFilter is stored with the template. Not sure what you want.
Re: use last TypeFilter when loading search template
Posted: 03 Jun 2016 16:35
by yusef88
if possible TypeFilter be optional when loading the template
Re: use last TypeFilter when loading search template
Posted: 03 Jun 2016 16:50
by highend
Why don't you modify the template (by scripting) before you load it?
Re: use last TypeFilter when loading search template
Posted: 03 Jun 2016 17:19
by yusef88
Could you give a clue to do that, please. (loading template does not change current filter)
Re: use last TypeFilter when loading search template
Posted: 03 Jun 2016 17:46
by highend
- You define a permanent variable where you store the last typefilter
- When you load a search template you get the TypeFilter value from that .ini file first, overwrite it with the last typefilter from the permanent variable and finally load the template. Or if you want, do this on a backup (after selecting which template should be loaded) to not modify and existing templates (permanently)
And can you please describe which typefilter should be used exactly (always 0 = all) or after each loaded typefilter remember the one that the last one had set?
Re: use last TypeFilter when loading search template
Posted: 04 Jun 2016 07:39
by yusef88
thanks for help highend. I made this and works as i want
Code: Select all
#193;$a= getkey("TypeFilter", "Find", "<xydata>\XYplorer.ini");
setkey "$a", "TypeFilter", "Find", "<xydata>\FindTemplates\PC.ini";
#260;loadsearch "PC", le