Comment 4 for bug 509389

Revision history for this message
X (u78qir8a9-deactivatedaccount) wrote : Re: [Bug 509389] Re: Sort plugins by categories in the preferences window

2010/1/24, Karol Będkowski <email address hidden>:
> Hi,
> Please take a look on attached patch.
> I have added entry field to filter plugins list. Simple but helpful.
>
> Regards,
> Karol
>

Hey, very nice!

I think we should use Kupfer's string ranker though, it would be the
least surprising to the users (For example that "ntes" matches
"Notes").

The function is kupfer.core.relevance.score(s, query).

It's slightly more tricky -- do we want to keep the list of matches
sorted or not? For a simple filter it might make sense, you have the
matches all laid out. Also we either use a relevancy ">0" criteria
or a cutoff such as relevancy > 0.1.

It would also be nice if the left hand side switches to the top
plugin. It shouldn't flicker and update for every keystroke, but
gently switching to the first in the list would be fine (a
scheduler.Timer repeatedly set everytime we filter the list would do
fine I think).

Ulrik