I like loadsearch, but it can be further enhanced if combining templates is possible.
For example say I have one template "vids" for searching "wmv;mpg;mov" and another template "music" for searching "mp3;ogg;wav". But sometimes I want to load them together for some reason.
Using loadsearch for loading both templates would be a cool addition and greater time saver.
Combine templates
-
jacky
- XYwiki Master
- Posts: 3106
- Joined: 23 Aug 2005 22:25
- Location: France
- Contact:
Re: Combine templates
Only that's not possible! How would XY possibly know what you want to do when "combining" such templates ? For instance when using Dates, Attr, etc what would happen ? And what if one ST has a Boolean pattern and the other a RegExp one ??serendipity wrote:I like loadsearch, but it can be further enhanced if combining templates is possible.
For example say I have one template "vids" for searching "wmv;mpg;mov" and another template "music" for searching "mp3;ogg;wav". But sometimes I want to load them together for some reason.
Using loadsearch for loading both templates would be a cool addition and greater time saver.
Proud XYplorer Fanatic
-
TheQwerty
- Posts: 4373
- Joined: 03 Aug 2007 22:30
Re: Combine templates
Well the templates are just INI files, so there's nothing to stop you from using SetKey and GetKey to combine them however you would like before using LoadSearch.
-
serendipity
- Posts: 3360
- Joined: 07 May 2007 18:14
- Location: NJ/NY
Re: Combine templates
Hmmm considering jacky's point it does sound tricky. I was first thinking in terms of simple "name" combination search, like vids+music = wmv;mpg;mov+mp3;ogg;wav. But like jacky said what about date, size etc?
Also I did not think about the ini thing before posting, that should be easy to manipulate if I only need "name" anyway.
So I take back my wish and work towards building a script instead.
Thanks guys, Case closed.
Also I did not think about the ini thing before posting, that should be easy to manipulate if I only need "name" anyway.
So I take back my wish and work towards building a script instead.
Thanks guys, Case closed.
-
admin
- Site Admin
- Posts: 66305
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Combine templates
I understood that you just wanted to "OR" two searches. Add the results of two searches to one results listing. That could easily be achieved if I do not clean the results between running the two templates.serendipity wrote:Hmmm considering jacky's point it does sound tricky. I was first thinking in terms of simple "name" combination search, like vids+music = wmv;mpg;mov+mp3;ogg;wav. But like jacky said what about date, size etc?
Also I did not think about the ini thing before posting, that should be easy to manipulate if I only need "name" anyway.
So I take back my wish and work towards building a script instead.
Thanks guys, Case closed.
FAQ | XY News RSS | XY X
-
serendipity
- Posts: 3360
- Joined: 07 May 2007 18:14
- Location: NJ/NY
Re: Combine templates
Yes, I would be happy with just the name concatenation like in my example. But then it would be limited to name only. What if one day somebody wants to combine sizes? like for example if i am searching for a file size between 20kb to 1mb for on template and 2mb to 4mb for another template then in this case the search be done in file sizes of 20kb to 4mb? I am not sure how many would really bother about such hardcore searching. Atleast not me, like I said I need a simple name concatenation.admin wrote:I understood that you just wanted to "OR" two searches. Add the results of two searches to one results listing. That could easily be achieved if I do not clean the results between running the two templates.serendipity wrote:Hmmm considering jacky's point it does sound tricky. I was first thinking in terms of simple "name" combination search, like vids+music = wmv;mpg;mov+mp3;ogg;wav. But like jacky said what about date, size etc?
Also I did not think about the ini thing before posting, that should be easy to manipulate if I only need "name" anyway.
So I take back my wish and work towards building a script instead.
Thanks guys, Case closed.
-
admin
- Site Admin
- Posts: 66305
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Combine templates
I did not talk about name concatenation, I meant search concatenation (all filters). As I said: just add to the Results listing...serendipity wrote:Yes, I would be happy with just the name concatenation like in my example. But then it would be limited to name only. What if one day somebody wants to combine sizes? like for example if i am searching for a file size between 20kb to 1mb for on template and 2mb to 4mb for another template then in this case the search be done in file sizes of 20kb to 4mb? I am not sure how many would really bother about such hardcore searching. Atleast not me, like I said I need a simple name concatenation.admin wrote:I understood that you just wanted to "OR" two searches. Add the results of two searches to one results listing. That could easily be achieved if I do not clean the results between running the two templates.serendipity wrote:Hmmm considering jacky's point it does sound tricky. I was first thinking in terms of simple "name" combination search, like vids+music = wmv;mpg;mov+mp3;ogg;wav. But like jacky said what about date, size etc?
Also I did not think about the ini thing before posting, that should be easy to manipulate if I only need "name" anyway.
So I take back my wish and work towards building a script instead.
Thanks guys, Case closed.
FAQ | XY News RSS | XY X
-
avsfan
- Posts: 554
- Joined: 29 Jun 2006 09:00
- Location: Fort Collins, Colorado
Re: Combine templates
You could even have an option where the items to be searched would be either the default (i.e. all) items or the existing search results -- this would give you the option of an "OR" or an "AND" behavior in your searches...admin wrote:I did not talk about name concatenation, I meant search concatenation (all filters). As I said: just add to the Results listing...
-
serendipity
- Posts: 3360
- Joined: 07 May 2007 18:14
- Location: NJ/NY
Re: Combine templates
Yeah thats what I meant. Instead of "wmv;mpg;mov" on first search and "mp3;ogg;wav" on second search (which would remove the first search), I meant joining both searches into one as wmv;mpg;mov;mp3;ogg;wav (this what I called concatenating names) which would give all required files in one list.admin wrote:I did not talk about name concatenation, I meant search concatenation (all filters). As I said: just add to the Results listing...
In your words, join second search list to first search list.
XYplorer Beta Club