Add Stackage and Vocabulary as new search engines.

This commit is contained in:
Sibi Prabakaran 2015-11-22 15:10:14 +05:30
parent dbfd81b3f9
commit 9eb55c76ea

View File

@ -46,11 +46,13 @@ module XMonad.Actions.Search ( -- * Usage
mathworld, mathworld,
openstreetmap, openstreetmap,
scholar, scholar,
stackage,
thesaurus, thesaurus,
wayback, wayback,
wikipedia, wikipedia,
wiktionary, wiktionary,
youtube, youtube,
vocabulary,
duckduckgo, duckduckgo,
multi, multi,
-- * Use case: searching with a submap -- * Use case: searching with a submap
@ -115,6 +117,8 @@ import XMonad.Util.XSelection (getSelection)
* 'hoogle' -- Hoogle, the Haskell libraries API search engine. * 'hoogle' -- Hoogle, the Haskell libraries API search engine.
* 'stackage' -- Stackage, An alternative Haskell libraries API search engine.
* 'images' -- Google images. * 'images' -- Google images.
* 'imdb' -- the Internet Movie Database. * 'imdb' -- the Internet Movie Database.
@ -139,6 +143,8 @@ import XMonad.Util.XSelection (getSelection)
* 'youtube' -- Youtube video search. * 'youtube' -- Youtube video search.
* 'vocabulary' -- Dictionary search
* 'duckduckgo' -- DuckDuckGo search engine. * 'duckduckgo' -- DuckDuckGo search engine.
* 'multi' -- Search based on the prefix. \"amazon:Potter\" will use amazon, etc. With no prefix searches google. * 'multi' -- Search based on the prefix. \"amazon:Potter\" will use amazon, etc. With no prefix searches google.
@ -294,11 +300,13 @@ maps = searchEngine "maps" "http://maps.google.com/maps?q="
mathworld = searchEngine "mathworld" "http://mathworld.wolfram.com/search/?query=" mathworld = searchEngine "mathworld" "http://mathworld.wolfram.com/search/?query="
openstreetmap = searchEngine "openstreetmap" "http://gazetteer.openstreetmap.org/namefinder/?find=" openstreetmap = searchEngine "openstreetmap" "http://gazetteer.openstreetmap.org/namefinder/?find="
scholar = searchEngine "scholar" "http://scholar.google.com/scholar?q=" scholar = searchEngine "scholar" "http://scholar.google.com/scholar?q="
stackage = searchEngine "stackage" "www.stackage.org/lts/hoogle?q="
thesaurus = searchEngine "thesaurus" "http://thesaurus.reference.com/search?q=" thesaurus = searchEngine "thesaurus" "http://thesaurus.reference.com/search?q="
wikipedia = searchEngine "wiki" "http://en.wikipedia.org/wiki/Special:Search?go=Go&search=" wikipedia = searchEngine "wiki" "http://en.wikipedia.org/wiki/Special:Search?go=Go&search="
wiktionary = searchEngine "wikt" "http://en.wiktionary.org/wiki/Special:Search?go=Go&search=" wiktionary = searchEngine "wikt" "http://en.wiktionary.org/wiki/Special:Search?go=Go&search="
youtube = searchEngine "youtube" "http://www.youtube.com/results?search_type=search_videos&search_query=" youtube = searchEngine "youtube" "http://www.youtube.com/results?search_type=search_videos&search_query="
wayback = searchEngineF "wayback" ("http://web.archive.org/web/*/"++) wayback = searchEngineF "wayback" ("http://web.archive.org/web/*/"++)
vocabulary = searchEngine "vocabulary" "http://www.vocabulary.com/search?q="
duckduckgo = searchEngine "duckduckgo" "https://duckduckgo.com/?t=lm&q=" duckduckgo = searchEngine "duckduckgo" "https://duckduckgo.com/?t=lm&q="
multi :: SearchEngine multi :: SearchEngine