GNOME Bugzilla – Bug 619873
search-as-you-type should only match beginnings of words
Last modified: 2010-06-09 11:48:57 UTC
If I type "nick" when focus is in the contact list with the intention of selection "Nick Richards", I actually end up with "Ian Romanick". The matching should only be done with beginnings of words, I think.
Marking as a dup of bug #608166 which is about completely redo live search support. I think the branch implements the behaviour you described. *** This bug has been marked as a duplicate of bug 608166 ***
no it doesnt...at least not yet! I personally think thats its better to match the needle in the haystack. On the N900 it searches only from the beginning and I have a friend which is called Marie-Lena but everyone calls her "Lena". Typing "lena" does not match "Marie-Lena", which is not good imho.
Felix, I tried really hard to think of examples that would break what I suggested: "Marie-Lena" is not one: anything non-alphanumeric should obviously break a word when matching.
Hmm...what one of my reasons were to do it this way is if someone uses a strange email address which contains some parts of the name but begins with something else. But anyways...thats a very constructed example. If the majority is for your approach, I'm fine with that. But I would like to do it once the live search is merged... thus I'm reopening the bug...
plitting on '-' (and some other chars than space) is an interesting idea, indeed. I don't like searching in any substring of the contact's ID. For example typing "Ja" will match all @jabber.org contacts... that's not useful. So i'm in favor matching only prefix for each word. Splitting words on space and some other common chars that could be found in names (or in IM id), like '-', '_', '.'
(In reply to comment #5) > So i'm in favor matching only prefix for each word. Splitting words on space > and some other common chars that could be found in names (or in IM id), like > '-', '_', '.' ++ But do that once the main branch has been merged. :)
This is already done.