mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 03:20:21 -07:00
XMonad.Actions.Search: add Google Maps search
This commit is contained in:
parent
16fc0f231d
commit
6fd03c107c
@ -23,6 +23,7 @@ module XMonad.Actions.Search ( -- * Usage
|
||||
google,
|
||||
hoogle,
|
||||
imdb,
|
||||
maps,
|
||||
mathworld,
|
||||
scholar,
|
||||
wayback,
|
||||
@ -73,6 +74,8 @@ import XMonad.Util.XSelection (getSelection)
|
||||
|
||||
* 'imdb' -- the Internet Movie Database.
|
||||
|
||||
* 'maps' -- Google maps.
|
||||
|
||||
* 'mathworld' -- Wolfram MathWorld search.
|
||||
|
||||
* 'scholar' -- Google scholar academic search.
|
||||
@ -179,11 +182,12 @@ simpleEngine :: Query -> SearchEngine
|
||||
simpleEngine site query = site ++ escape query
|
||||
|
||||
-- The engines.
|
||||
amazon, google, hoogle, imdb, mathworld, scholar, wayback, wikipedia :: SearchEngine
|
||||
amazon, google, hoogle, imdb, maps, mathworld, scholar, wayback, wikipedia :: SearchEngine
|
||||
amazon = simpleEngine "http://www.amazon.com/exec/obidos/external-search?index=all&keyword="
|
||||
google = simpleEngine "http://www.google.com/search?num=100&q="
|
||||
hoogle = simpleEngine "http://www.haskell.org/hoogle/?q="
|
||||
imdb = simpleEngine "http://www.imdb.com/Find?select=all&for="
|
||||
maps = simpleEngine "http://maps.google.com/maps?q="
|
||||
mathworld = simpleEngine "http://mathworld.wolfram.com/search/?query="
|
||||
scholar = simpleEngine "http://scholar.google.com/scholar?q="
|
||||
wikipedia = simpleEngine "https://secure.wikimedia.org/wikipedia/en/wiki/Special:Search?go=Go&search="
|
||||
|
Loading…
x
Reference in New Issue
Block a user