Request: allow krunner to start search at the first character
Aaron J. Seigo
aseigo at kde.org
Fri Dec 3 08:01:32 CET 2010
On Thursday, December 2, 2010, Vito 'ZeD' De Tullio wrote:
> It's this "3 chars" hardcoded?
it isn't hard coded in krunner or Plama::RunnerManager. this is something each
Runner plugin decides on for itself. for plugins where fewer letters actually
stand the chance of returning anything even moderately useful, they do return
results for fewer charaters. the only thing achieved by returning hundreds (or
thousands) of useless possible matches on the first keystroke is to waste cpu
and slow down the time needed until the next set of matches appears.
try it for yourself, though; it's usually a "if (query.length() < 3) { return;
}" type statement in the match() method of the runners, which are in
kdebase/workspace/plasma/generic/runners and kdeplasma-addons/runners
--
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA EE75 D6B7 2EB1 A7F1 DB43
KDE core developer sponsored by Qt Development Frameworks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20101202/d12418bd/attachment.sig
More information about the Plasma-devel
mailing list