Page 1 of 1

Combine templates

Posted: 04 Sep 2008 22:50
by serendipity
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.

Re: Combine templates

Posted: 04 Sep 2008 23:13
by jacky
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.
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 ??

Re: Combine templates

Posted: 05 Sep 2008 00:05
by TheQwerty
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.

Re: Combine templates

Posted: 05 Sep 2008 00:16
by serendipity
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. :)

Re: Combine templates

Posted: 05 Sep 2008 07:51
by admin
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. :)
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.

Re: Combine templates

Posted: 05 Sep 2008 15:20
by serendipity
admin wrote:
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. :)
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.
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.

Re: Combine templates

Posted: 05 Sep 2008 15:24
by admin
serendipity wrote:
admin wrote:
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. :)
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.
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.
I did not talk about name concatenation, I meant search concatenation (all filters). As I said: just add to the Results listing...

Re: Combine templates

Posted: 05 Sep 2008 16:29
by avsfan
admin wrote:I did not talk about name concatenation, I meant search concatenation (all filters). As I said: just add to the Results listing...
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...

Re: Combine templates

Posted: 05 Sep 2008 16:37
by serendipity
admin wrote:I did not talk about name concatenation, I meant search concatenation (all filters). As I said: just add to the Results listing...
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.
In your words, join second search list to first search list.