[Panel-devel] rfc on runner ordering

Aaron J. Seigo aseigo at kde.org
Tue Oct 9 10:58:18 CEST 2007


On Tuesday 09 October 2007, Sebastian Kügler wrote:
> On Tuesday 09 October 2007 10:37:05 Robert Knight wrote:
> > > one approach would be to record the type of runner
> >
> > What about runners that can return different types of result, the main
> > example being the search runner?  That might return mail, pictures,
> > misc. documents, contacts and probably more depending on the search
> > tool.
> >
> > Depending on the kind of result it might have a different priority.
>
> Ordering results based on mtime might also make sense (often opened
> applications or files are more likely to be what I want). I could also
> think of the location that matters (i.e. ~/pr0n is probably more important
> than ~/work, eeeh, wait, results in ~ compared to results in /usr).

we already sort somewhat: information only actions, exact matches, inexact 
matches .. but it's pretty simplistic and within those divisions it's all 
about the order of the runners.

and you both seem to be proposing per-QAction priorities ... hm. that would 
indeed be trickier; it would probably mean having a Plasma::RunnerAction to 
accomodate that. i'm not sure all entries would have an mtime, though that 
could a useful component ...

this could quickly shape up to be a tricky little heuristic... exactness + 
mtime (if any) + type of action represented ..... oi.

ah, another thing that occurs to me as to why to possibly have a 
Plasma::RunnerAction is to be able to associate multiple actions per result, 
so there can be a primary action (open, run, etc) and secondary actions to 
choose from such as "edit", "set as background", "email to" ... if that 
sounds a lot like servicemenus in konqi ..... =)

-- 
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 Trolltech
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20071009/834224a1/attachment.pgp 


More information about the Panel-devel mailing list