Re: Search in toolbar

Owen Cliffe <[email protected]> Sat, 25 Feb 2006 21:48:02 +0000
Newsgroups gmane.comp.gnome.apps.pybliographer
Organization University of Bath
Message-ID <[email protected]>
On Sat, 2006-02-25 at 21:33 +0100, Frederic Gobry wrote:
> > In light of this i've done a quick hack to add a search box to the
> > toolbar (along the lines of firefox etc.) to shortcut the first two
> > stages mentioned above. The search button sets the filter  (in the same
> > way as the find dialog box) on all keys. 
> 
> Thanks for the patch. Once upon a time, search-as-you-type was working
> in pyblio, but the new TreeView seems to eat up the keystrokes now.
> Would a working search-as-you-type be enough for your case? (just
> wondering)
Thanks for the response!

Search as you type is a good feature too. I tried this with the toolbar
search but with 1000+ bib entries the search time for each keystroke
gets a bit long on my old computer (although i don't suppose this is a
real problem). 

I don't think that one approach is necessarily better than the other, it
just struck me that the search-in-toolbar as seen in
firefox/rhythmbox/itunes (and the forthcoming versions of nautilus and
yelp) seemed like a good idea for an app where searching is one of the
things i am typically doing most. 

I think one of the things which i found slightly counter-intuitive with
the existing search dialog was the fact that by default,  clicking find
and then entering a search refines the existing filter, rather than
creating a new one.  I like the hierarchical tree search, but most of
the time i actually want to create a new search, and for some reason my
brain is not expecting the refinement behaviour (resulting in having to
repeat the search...). 


Another possible bug (although i'm not sure) is that if you refine a
search by key, the search expression only matches the start of the key,
so if i  try to search for all entries containing "-a" i get no results,
but if I search of ".*-a" i get the entries i am looking for. 

Thanks again, 

owen 



-- 
---------------------------------------------------------------------
owen cliffe (postgraduate)          Email: [email protected]
Department of Computer Science        Web: http://www.cs.bath.ac.uk/~occ
Univ. Bath, Bath, England BA2 7AY      Tel: (+44) 1225 386183



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642