XMonad.actions.search: Add NixOS and home-manager searchEngines (#832)

* feat(search): add nixos as searchEngine
* feat(search): add homeManager as searchEngine
* docs(CHANGES): add nixos, homeManager to searchEngine section

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
This commit is contained in:
Christina Sørensen 2023-09-27 17:05:09 +02:00 committed by GitHub
parent 7bb1f0b887
commit a379850f50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 7 deletions

View File

@ -207,10 +207,10 @@
* `XMonad.Actions.Search` * `XMonad.Actions.Search`
- Added `aur`, `flora`, `ncatlab`, `protondb`, `rosettacode`, - Added `aur`, `flora`, `ncatlab`, `protondb`, `rosettacode`, `sourcehut`,
`sourcehut`, `steam`, `voidpgks_x86_64`, `voidpgks_x86_64_musl`, `steam`, `voidpgks_x86_64`, `voidpgks_x86_64_musl`, `arXiv`,
`arXiv`, `clojureDocs`, `cratesIo`, `rustStd`, `noogle`, and `clojureDocs`, `cratesIo`, `rustStd`, `noogle`, `nixos`, `homeManager`,
`zbmath` search engines. and `zbmath` search engines.
* `XMonad.Layout.ResizableThreeColumns` * `XMonad.Layout.ResizableThreeColumns`

View File

@ -48,6 +48,7 @@ module XMonad.Actions.Search ( -- * Usage
github, github,
google, google,
hackage, hackage,
homeManager,
hoogle, hoogle,
images, images,
imdb, imdb,
@ -55,6 +56,7 @@ module XMonad.Actions.Search ( -- * Usage
maps, maps,
mathworld, mathworld,
ncatlab, ncatlab,
nixos,
noogle, noogle,
openstreetmap, openstreetmap,
protondb, protondb,
@ -151,6 +153,8 @@ import XMonad.Util.XSelection (getSelection)
* 'hackage' -- Hackage, the Haskell package database. * 'hackage' -- Hackage, the Haskell package database.
* 'homeManager' -- Search Nix's home-manager's options.
* 'hoogle' -- Hoogle, the Haskell libraries API search engine. * 'hoogle' -- Hoogle, the Haskell libraries API search engine.
* 'images' -- Google images. * 'images' -- Google images.
@ -165,6 +169,8 @@ import XMonad.Util.XSelection (getSelection)
* 'ncatlab' -- Higer Algebra, Homotopy and Category Theory Wiki. * 'ncatlab' -- Higer Algebra, Homotopy and Category Theory Wiki.
* 'nixos' -- Search NixOS packages and options.
* 'noogle' -- 'hoogle'-like Nix API search engine. * 'noogle' -- 'hoogle'-like Nix API search engine.
* 'openstreetmap' -- OpenStreetMap free wiki world map. * 'openstreetmap' -- OpenStreetMap free wiki world map.
@ -334,9 +340,9 @@ searchEngineF = SearchEngine
-- The engines. -- The engines.
alpha, amazon, arXiv, aur, clojureDocs, codesearch, cratesIo, deb, debbts, debpts, dictionary, duckduckgo, ebay, flora, 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, github, google, hackage, homeManager, hoogle, images, imdb, lucky, maps, mathworld, ncatlab, nixos, noogle, openstreetmap, protondb,
scholar, sourcehut, stackage, steam, thesaurus, vocabulary, voidpgks_x86_64, voidpgks_x86_64_musl, wayback, wikipedia, wiktionary, rosettacode, rustStd, scholar, sourcehut, stackage, steam, thesaurus, vocabulary, voidpgks_x86_64, voidpgks_x86_64_musl, wayback,
youtube, zbmath, noogle :: SearchEngine wikipedia, wiktionary, youtube, zbmath :: SearchEngine
alpha = searchEngine "alpha" "https://www.wolframalpha.com/input/?i=" 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=" 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") arXiv = searchEngineF "arXiv" (\s -> "https://arxiv.org/search/?query=" <> s <> "&searchtype=all")
@ -354,6 +360,7 @@ flora = searchEngine "flora" "https://flora.pm/search?q="
github = searchEngine "github" "https://github.com/search?q=" github = searchEngine "github" "https://github.com/search?q="
google = searchEngine "google" "https://www.google.com/search?q=" google = searchEngine "google" "https://www.google.com/search?q="
hackage = searchEngine "hackage" "https://hackage.haskell.org/package/" hackage = searchEngine "hackage" "https://hackage.haskell.org/package/"
homeManager = searchEngine "homeManager" "https://mipmip.github.io/home-manager-option-search/?query="
hoogle = searchEngine "hoogle" "https://hoogle.haskell.org/?hoogle=" hoogle = searchEngine "hoogle" "https://hoogle.haskell.org/?hoogle="
images = searchEngine "images" "https://images.google.fr/images?q=" images = searchEngine "images" "https://images.google.fr/images?q="
imdb = searchEngine "imdb" "https://www.imdb.com/find?s=all&q=" imdb = searchEngine "imdb" "https://www.imdb.com/find?s=all&q="
@ -361,6 +368,7 @@ lucky = searchEngine "lucky" "https://www.google.com/search?btnI
maps = searchEngine "maps" "https://maps.google.com/maps?q=" maps = searchEngine "maps" "https://maps.google.com/maps?q="
mathworld = searchEngine "mathworld" "https://mathworld.wolfram.com/search/?query=" mathworld = searchEngine "mathworld" "https://mathworld.wolfram.com/search/?query="
ncatlab = searchEngine "ncatlab" "https://ncatlab.org/nlab/search?query=" ncatlab = searchEngine "ncatlab" "https://ncatlab.org/nlab/search?query="
nixos = searchEngine "nixos" "https://search.nixos.org/packages?channel=unstable&from=0&size=200&sort=relevance&type=packages&query="
noogle = searchEngineF "noogle" (\s -> "https://noogle.dev/?search=" <> s <> "&page=1&to=any&from=any") noogle = searchEngineF "noogle" (\s -> "https://noogle.dev/?search=" <> s <> "&page=1&to=any&from=any")
openstreetmap = searchEngine "openstreetmap" "https://www.openstreetmap.org/search?query=" openstreetmap = searchEngine "openstreetmap" "https://www.openstreetmap.org/search?query="
protondb = searchEngine "protondb" "https://www.protondb.com/search?q=" protondb = searchEngine "protondb" "https://www.protondb.com/search?q="