X.A.Search: Add noogle

This commit is contained in:
Tony Zorman 2023-01-18 17:56:57 +01:00
parent a790c816d2
commit 7665b67ff4
2 changed files with 6 additions and 3 deletions

View File

@ -157,8 +157,8 @@
- Added `aur`, `flora`, `ncatlab`, `protondb`, `rosettacode`,
`sourcehut`, `steam`, `voidpgks_x86_64`, `voidpgks_x86_64_musl`,
`arXiv`, `clojureDocs`, `cratesIo`, `rustStd`, and `zbmath` search
engines.
`arXiv`, `clojureDocs`, `cratesIo`, `rustStd`, `noogle`, and
`zbmath` search engines.
* `XMonad.Layout.ResizableThreeColumns`

View File

@ -164,6 +164,8 @@ import XMonad.Util.XSelection (getSelection)
* 'ncatlab' -- Higer Algebra, Homotopy and Category Theory Wiki.
* 'noogle' -- 'hoogle'-like Nix API search engine.
* 'openstreetmap' -- OpenStreetMap free wiki world map.
* 'protondb' -- Steam Proton Game Database.
@ -333,7 +335,7 @@ searchEngineF = SearchEngine
alpha, amazon, arXiv, aur, clojureDocs, codesearch, cratesIo, deb, debbts, debpts, dictionary, duckduckgo, ebay, flora,
github, google, hackage, hoogle, images, imdb, lucky, maps, mathworld, ncatlab, openstreetmap, protondb, rosettacode, rustStd,
scholar, sourcehut, stackage, steam, thesaurus, vocabulary, voidpgks_x86_64, voidpgks_x86_64_musl, wayback, wikipedia, wiktionary,
youtube, zbmath :: SearchEngine
youtube, zbmath, noogle :: SearchEngine
alpha = searchEngine "alpha" "https://www.wolframalpha.com/input/?i="
amazon = searchEngine "amazon" "https://www.amazon.com/s/ref=nb_sb_noss_2?url=search-alias%3Daps&field-keywords="
arXiv = searchEngineF "arXiv" (\s -> "https://arxiv.org/search/?query=" <> s <> "&searchtype=all")
@ -358,6 +360,7 @@ lucky = searchEngine "lucky" "https://www.google.com/search?btnI
maps = searchEngine "maps" "https://maps.google.com/maps?q="
mathworld = searchEngine "mathworld" "https://mathworld.wolfram.com/search/?query="
ncatlab = searchEngine "ncatlab" "https://ncatlab.org/nlab/search?query="
noogle = searchEngineF "noogle" (\s -> "https://noogle.dev/?search=" <> s <> "&page=1&to=any&from=any")
openstreetmap = searchEngine "openstreetmap" "https://www.openstreetmap.org/search?query="
protondb = searchEngine "protondb" "https://www.protondb.com/search?q="
rosettacode = searchEngine "rosettacode" "https://rosettacode.org/w/index.php?search="