Re: Auto completion patch for search in GtkTreeView



On Mon, 2005-04-04 at 13:49 +0100, Gustavo J. A. M. Carneiro wrote:
> On Sun, 2005-04-03 at 13:40 +0200, Jaap Haitsma wrote:
> > Hi,
> > 
> > The find as you type search functionality in the GtkTreeView which came 
> > in GTK 2.6 is really cool in my opinion, because it saves a lot of 
> > typing or scrolling.
> > 
> > When I was editing nautilus with gedit I noticed I still had to type a 
> > lot because a lot of files have the following format nautilus-<some 
> > name>.[ch]
> > 
> > I implemented a patch such that you need even less typing. If there are 
> > no other viable options for the characters you typed it will try to 
> > complete the text as far as possible. E.g. if you have a directory which 
> > contains a lot of files with start with nautilus- the search entry will 
> > complete automatically to nautilus- as soon as you type an n and if ther 
> > e are no other files which start with an n.
> 
>   IMHO, it would be much more useful if typeahead search was always
> based on substring match, like the way mozilla searches in web
> pages/links.  This would more useful because sometimes you want a file,
> but you have no idea how it starts, and you only know a word in the
> middle.
> 

The main reason why we switched from substring match to prefix match is
that it is currently not possible to highlight the actual match, which
makes the behaviour of substring match a bit confusing sometimes. 

Matthias




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]