Skip to content

Commit

Permalink
feat(search): add homeManager as searchEngine
Browse files Browse the repository at this point in the history
Signed-off-by: Christina Sørensen <[email protected]>
  • Loading branch information
cafkafk committed Sep 27, 2023
1 parent 70bf897 commit 74af531
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion XMonad/Actions/Search.hs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ module XMonad.Actions.Search ( -- * Usage
github,
google,
hackage,
home-manager,

Check failure on line 51 in XMonad/Actions/Search.hs

View workflow job for this annotation

GitHub Actions / hlint

Error: Parse error: on input `-' ▫︎ Found: " google,\n hackage,\n> home-manager,\n hoogle,\n images,\n"
hoogle,
images,
imdb,
Expand Down Expand Up @@ -152,6 +153,8 @@ import XMonad.Util.XSelection (getSelection)
* 'hackage' -- Hackage, the Haskell package database.
* 'homeManager' -- Search Nix's home-manager's options.
* 'hoogle' -- Hoogle, the Haskell libraries API search engine.
* 'images' -- Google images.
Expand Down Expand Up @@ -337,7 +340,7 @@ searchEngineF = SearchEngine

-- The engines.
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, openstreetmap, protondb, rosettacode, rustStd,
scholar, sourcehut, stackage, steam, thesaurus, vocabulary, voidpgks_x86_64, voidpgks_x86_64_musl, wayback, wikipedia, wiktionary,
youtube, zbmath, nixos, noogle :: SearchEngine
alpha = searchEngine "alpha" "https://www.wolframalpha.com/input/?i="
Expand All @@ -357,6 +360,7 @@ flora = searchEngine "flora" "https://flora.pm/search?q="
github = searchEngine "github" "https://github.com/search?q="
google = searchEngine "google" "https://www.google.com/search?q="
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="
images = searchEngine "images" "https://images.google.fr/images?q="
imdb = searchEngine "imdb" "https://www.imdb.com/find?s=all&q="
Expand Down

0 comments on commit 74af531

Please sign in to comment.