I just stumbled across Searchling, a very cool little mini-application for OS X. When running, it adds a system-wide search field that allows you to search Google, Slashdot, or a few other sites.
The coolest bit, though, is that the search options are defined by a simple XML file. So, I did a bit of digging, figured out the syntax (which really wasn’t all that hard), and added djwudi.com to the search options!
On the off chance that another OS X user might want to add me to Searchling, here’s the code to add:
<dict>
<key>name</key>
<string>djwudi.com</string>
<key>types</key>
<array>
<dict>
<key>type</key>
<string>Web</string>
<key>url</key>
<string>http://www.djwudi.com/cgi-bin/search/search.pl?
nocpp=1&Match=1&Realm=All&Terms=</string>
</dict>
</array>
</dict>
(Note: the string between <string>
and </string>
is one continuous line, a linebreak has been added here for readability.)
Update: As I’m no longer weblogging at djwudi.com, the above XML snippet won’t actually work. I’m leaving it up here, though, as a handy example of how to add things to Searchling.