Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion FYI - How to add CPAN as a search plugin for Firefox
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
mintywalker  
View profile  
 More options Apr 14 2008, 6:15 am
Newsgroups: comp.lang.perl.misc
From: mintywalker <mintywal...@gmail.com>
Date: Mon, 14 Apr 2008 03:15:04 -0700 (PDT)
Local: Mon, Apr 14 2008 6:15 am
Subject: Re: FYI - How to add CPAN as a search plugin for Firefox
On Apr 2, 9:55 pm, "A. Sinan Unur" <1...@llenroc.ude.invalid> wrote:

> As an alternative, I have always preferred search keywords for this
> kind of stuff. Not as sexy, but works.

There is (imho) one key benefit to the search plugins, over the
location bar search keywords.  But it's not standard in most of them
except Google.

The Google search plugin has "keyword suggest".  Type in "perl" and it
suggests "perl split", "perlico", "perl hash", etc.  Perl is perhaps
not the best example, but I find it's a feature I like a lot.

Most of the other official plugins I've seen don't have this feature
(at least when I last looked).  However there is an easy hack to add
them:

Find your local copy of the plugin and add:

<Url type="application/x-suggestions+json" method="get"
       template="http://suggestqueries.google.com/complete/search?
output=firefox&amp;qu={searchTerms}"/>

Now you can have a Wikipedia plugin that suggests queries as you type
into the search box.  You can do the same for your Perl plugin.  Or
Amazon.

I almost switched to location bar search keywords, but having earlier
added the suggest feature to all my other plugins I found I missed it
too much.   If anyone knows a way to get the suggestions via the
location bar, do please let me know.

One big downside is that I've not been able to find a way to make the
generic Google Suggest feature site specific.  It would be most neat
if I could hack the url above to include "site:cpan.org" and have the
suggestions only come from that site.

That might not be trivial for Google to implement for all sites, but
you'll note that with (not a small) bit of work cpan (or Amazon, BBC,
YouTube etc) could implement their own site-specific version of this
suggest service to contextualize the suggestions in their plugin.  I
still find the service useful, even when it's not site specific.

With the caveat that this page was put together entirely for me, so
your mileage may vary, I have hacked the following plugins to include
the Google Suggest feature.  It would be much better if the standard
plugins did this themselves I think.

http://minty.org/search/

The reason I have my own Google plugin is because of the cruft that
the official Google Plugin introduces into the url.  It doesn't make
for copy&paste friendly.  My version generates the shortest url that
delivers the results.  One down side is that Mozilla probably don't
get the ad revenue because I've removed the magic url bits that say
"This was a search from a Mozilla product".

ps. Perhaps the cpan people could add a line like this to all their
markup, allowing people to add the plugin direct from the site:

<link rel="search" type="application/opensearchdescription+xml"
title="Search cpan!" href="http://.../cpan.osd" />


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.