David Filmer posted a snazzy Firefox trick that puts a CPAN search in the search dropdown in Firefox. Works wonderfully.
Searching CPAN from Firefox
8 Comments
Leave a comment
Perlbuzz
- Attention all Vim-using Perl programmers
- Perlbuzz news roundup 2009-06-02
- Perlbuzz news roundup for 2009-05-30
- Perlbuzz news roundup for 2009-05-26
- Perlbuzz news roundup for 2009-05-14
- Perlbuzz news roundup 2009-05-02
- Perlbuzz news roundup 2009-04-27
- Perlbuzz news roundup 2009-04-22
- What happens at a hackathon?
- Perlbuzz news roundup 2009-04-05
Mechanix
- Cool vim plugin of the day: surround.vim
- When to use JPEG, when to use PNG
- Git is my hero
- Downloading video with Awk
- Creating Excel files with Perl
- Scrabble cheating with Perl one-liners
- Use Getopt::Long even if you don't think you need to
- Pragmatic Programmer on estimating
- How to write a simple database-backed website with Perl modules Mason and Class::DBI
- Optimizing file searches with File::Find::Rule
The Working Geek
- How does a contractor make his resume appealing to a hiring manager?
- On breadth vs. depth of technical knowledge
- Do I need to learn Microsoft technologies?
- Should I switch jobs to learn better development processes?
- What can go in a sysadmin's work portfolio?
- JobCamp wrap-up and 23 Rules For Job Seekers
- First excerpts of Land The Tech Job You Love now available online
- Beautiful Teams
- How to get laid off properly
- Job searches up 27% in November 2008: SimplyHired
Search
Contact
- Email andy@petdance.com
- Twitter Perlbuzz
Other Perl Sites
- Rakudo.org, home of Rakudo Perl 6
- Modern Perl
- Proud To Use Perl
- The official Perl wikis
- News at The Perl Foundation
- use.perl.org
- jobs.perl.org
- Perlcast, the Perl podcast
I like to keep the search box just for Google, because the rest involves visual interaction (you can't just hit a bunch of keys, but have to visually verify that you're selecting what you think you are).
Fortunately, Firefox has had another very useful feature for ages, bookmark keywords. Bookmark http://search.cpan.org/search?mode=all&query=%s (yes, a literal %s), and give the bookmark a keyword of "cpan". Then you can just type "cpan dbix" in the *address bar* to search CPAN for "dbix".
Yeah, I like the keyword bookmarks, too. For a while, I had "cpan" for an "All" search, "cpanmod" for just module name, and so on.
A similar technique can be used with Safari on Mac OS X and the Inquisitor search add-on by David Watanbe ( http://www.inquisitorx.com/ ). I do this for both search.cpan.org and and perldoc.perl.org.
wow =)
here's how to do that in Opera (Opera haters stop reading here):
Go to search.cpan.org, right-click on the search field and click "Create Search". Type in a nickname, e.g. "cp". Click Ok.
Now you can do a cpan search just by typing "cp DBI" into the addressline. No mouse involved for searching =)
Probably easier to just install one from here: http://mycroft.mozdev.org/download.html?name=cpan
There are a couple there for perldoc as well.
Hey,
back in the day, I created a Google custom search engine instance for all things Perl. You can access it http://perl.idaru.co.uk
It already offers a Firefox quick search dropdown and you can additionally filter the results you get from one of the pre-defined labels (Usenet, CPAN, documentation etc).
I hope somebody else finds this useful, it has saved me from going to Google and manually looking for something numerous times. Suggestions on how to improve it are more than welcome.
After some correction of the XML, I installed it in /usr/lib/firefox/searchplugins/.
But how do I actually invoke it from within Firefox? Much to my surprise, when I google for "Firefox plugins" nothing comes up which tells me how to *use* plugins that are manually installed like this one.
I've added a comment to the original usenet post about the benefits of Google Suggest, and how to add them to your own search plugins.
It's one thing I don't think you can do with the location bar search keywords.
Full story here:
http://groups.google.com/group/comp.lang.perl.misc/msg/1da27bbebd9bad66