First thing, great program, best i've used on a *nix box (I currently
run FreeBSD and have it working under that).
I was just wondering if anybody would be interested in an improved
search facility for the list view of clips? I programmed a fairly simple
search filter which i use and was wondering if people were interested in
having it added to the project?
My reasoning for the new filter (used in place of
KListViewSearchLineWidget in projectlist.h for the code minded people)
is that i often use keywords in the description to help me organise the
clips, rather than a full description. So to help me search through my
clips, I changed the default search filter to be more like a google
search, with each word in the search string checked for in the filename
and description individually, rather than the string itself. I also put
in support for the "or" keyword, and the ability to take out results
with the "-" symbol.
For a brief example of what i mean, consider the following three clips
and their descriptions (descriptions in brackets)
clip1.mpg (cat dog fight)
clip2.mpg (fight bird cat)
clip3.mpg (dog cat play)
if i entered the search term 'cat dog', i would find clips 1 and 3
because they are the only clips with both keywords cat and dog in them.
If i used the search term 'cat -dog', it would find clip 2, as it has
the term cat, but not the term dog in it.
If i used the search term 'fight dog OR bird fight', clips 1 and 2 would
be found, because clip 1 contains both fight and dog, and clip 2
contains both bird and fight in it.
Phrases can also be searched for by putting the phrase in double quotes.
For instance if i used the term '"cat dog" or bird' it would find clip 1
(contains "cat dog") and clip 2 (contains 'bird') but not clip 3
(contains "dog cat" not "cat dog").
Anyway its a simple grammer with the only key words and symbols being
double quotes ("), the or word (or), and the not symbol (-).
The only code change is to projectlist.cpp/h (uses
ListViewTagSearchWidget instead of KListViewSearchLineWidget) and the
addition of the new ListViewTagSearchWidget class to
listviewtagsearch.cpp/h. So if people are interested, I'm happy to add
this code to the project, or to pass it on to someone who can.