On Sun, 2009-06-21 at 14:40 -0700, Mike Rooney wrote:
> On Sun, Jun 21, 2009 at 2:15 PM, Benjamin
> Klüglein<[email protected]> wrote:
> > Hello group,
> >
> > as this is my first mail here I have to 'do' a statement first: Do
> > absolutely rocks!!! It really works like a charm and boosts my productivity!
> > Thanks a lot!! :-)
> >
> > A use case which I'm often facing is, that I quickly want to check the
> > package archive for existing packages and install what I find. Right now I
> > open a terminal and search via "apt-cache search foo" look for what fits and
> > then install it.
> >
> > Is there a way to do this directly with Do? I know the AptURL Install
> > plugin, but it implies that I know the exact name of the package. While
> > sitting on my couch I came up with the idea that it would be cool to be able
> > to do something like the following:
> > Summon Do => type 'search package' or something significant shorter :-) =>
> > type a search term => tab => a list of packages found by apt-cache gets
> > displayed, select one and press return and the package then gets installed
> > by the AptURL install plugin.
> > Would it be better that I try to extend the AptURL plugin or to write a
> > complete new?
> >
> 
> This definitely sounds like a cool and useful idea; I also use that
> workflow frequently. AptURL might not be a good name for the plugin if
> it also used apt-cache search. Is there any precedent for plugins
> talking to each other or passing items to another plugin? I think a
> separate plug-in could be the most coherent since it is reasonable
> that you would only want to search packages but not install them.
> 
The current way that plugins would do this would be the
Summon => "audio player" => "search package" => enter, and the "search
packages" plugin would re-summon with a text-item (see how plugins like
TinyURL & Pastebin do it").

Obviously here we'd be wanting to return a list of text-items; I presume
this would work, but I've never used a plugin that did it.

This might be one of the nice places to use PackageKit, if you're
feeling like making the plugin a little less Debian-centric :)

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to