use last TypeFilter when loading search template

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
yusef88
Posts: 1148
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

use last TypeFilter when loading search template

Post by yusef88 »

like the behavior when toggle find files, is this configurable?

Code: Select all

TypeFilter=0

admin
Site Admin
Posts: 66672
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: use last TypeFilter when loading search template

Post by admin »

TypeFilter is stored with the template. Not sure what you want.

yusef88
Posts: 1148
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

Re: use last TypeFilter when loading search template

Post by yusef88 »

if possible TypeFilter be optional when loading the template

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: use last TypeFilter when loading search template

Post by highend »

Why don't you modify the template (by scripting) before you load it?
One of my scripts helped you out? Please donate via Paypal

yusef88
Posts: 1148
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

Re: use last TypeFilter when loading search template

Post by yusef88 »

Could you give a clue to do that, please. (loading template does not change current filter)

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: use last TypeFilter when loading search template

Post 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?
One of my scripts helped you out? Please donate via Paypal

yusef88
Posts: 1148
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

Re: use last TypeFilter when loading search template

Post 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

Post Reply