aboutsummaryrefslogtreecommitdiffstats
path: root/XMonad/Actions/Search.hs
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2008-10-08 12:40:33 +0200
committerintrigeri <intrigeri@boum.org>2008-10-08 12:40:33 +0200
commiteb843b084edeb9fbfe8d11c9d13e9cb5af7bc588 (patch)
tree0c28b60342cb9150ebdc2daa3ca5a87e09c8b1d0 /XMonad/Actions/Search.hs
parent4e77ff374e4f20bc9872b2e1ce5e366c74ef83f5 (diff)
downloadXMonadContrib-eb843b084edeb9fbfe8d11c9d13e9cb5af7bc588.tar.gz
XMonadContrib-eb843b084edeb9fbfe8d11c9d13e9cb5af7bc588.tar.xz
XMonadContrib-eb843b084edeb9fbfe8d11c9d13e9cb5af7bc588.zip
Actions.Search: add a few search engines
Add Debian {package, bug, tracking system} search engines, as well as Google Images and isohunt. darcs-hash:20081008104033-35915-a13f29b012ccf7cfc88c12ce28ff5369a3fa1157.gz
Diffstat (limited to 'XMonad/Actions/Search.hs')
-rw-r--r--XMonad/Actions/Search.hs25
1 files changed, 23 insertions, 2 deletions
diff --git a/XMonad/Actions/Search.hs b/XMonad/Actions/Search.hs
index 3878969..65a6ddb 100644
--- a/XMonad/Actions/Search.hs
+++ b/XMonad/Actions/Search.hs
@@ -22,10 +22,15 @@ module XMonad.Actions.Search ( -- * Usage
amazon,
codesearch,
+ deb,
+ debbts,
+ debpts,
dictionary,
google,
hoogle,
+ images,
imdb,
+ isohunt,
maps,
mathworld,
scholar,
@@ -75,14 +80,24 @@ import XMonad.Util.XSelection (getSelection)
* 'codesearch' -- Google Labs Code Search search.
+* 'deb' -- Debian package search.
+
+* 'debbts' -- Debian Bug Tracking System.
+
+* 'debpts -- Debian Package Tracking System.
+
* 'dictionary' -- dictionary.reference.com search.
* 'google' -- basic Google search.
* 'hoogle' -- Hoogle, the Haskell libraries search engine.
+* 'images' -- Google images.
+
* 'imdb' -- the Internet Movie Database.
+* 'isohunt' -- isoHunt search.
+
* 'maps' -- Google maps.
* 'mathworld' -- Wolfram MathWorld search.
@@ -196,14 +211,20 @@ searchEngine :: Name -> Site -> SearchEngine
searchEngine name site = SearchEngine name site
-- The engines.
-amazon, codesearch, dictionary, google, hoogle, imdb, maps, mathworld,
- scholar, thesaurus, wayback, wikipedia, youtube :: SearchEngine
+amazon, codesearch, deb, debbts, debpts, dictionary, google, hoogle, images,
+ imdb, isohunt, maps, mathworld, scholar, thesaurus, wayback, wikipedia,
+ youtube :: SearchEngine
amazon = searchEngine "amazon" "http://www.amazon.com/exec/obidos/external-search?index=all&keyword="
codesearch = searchEngine "codesearch" "http://www.google.com/codesearch?q="
+deb = searchEngine "deb" "http://packages.debian.org/"
+debbts = searchEngine "debbts" "http://bugs.debian.org/"
+debpts = searchEngine "debpts" "http://packages.qa.debian.org/"
dictionary = searchEngine "dictionary" "http://dictionary.reference.com/browse/"
google = searchEngine "google" "http://www.google.com/search?num=100&q="
hoogle = searchEngine "hoogle" "http://www.haskell.org/hoogle/?q="
+images = searchEngine "images" "http://images.google.fr/images?q="
imdb = searchEngine "imdb" "http://www.imdb.com/Find?select=all&for="
+isohunt = searchEngine "isohunt" "http://isohunt.com/torrents/?ihq="
maps = searchEngine "maps" "http://maps.google.com/maps?q="
mathworld = searchEngine "mathworld" "http://mathworld.wolfram.com/search/?query="
scholar = searchEngine "scholar" "http://scholar.google.com/scholar?q="