From 157e520082510e78808051d3bc2b46ae5a5bb1cc Mon Sep 17 00:00:00 2001 From: defanor Date: Fri, 15 Dec 2017 00:05:18 +0300 Subject: Add XSLTs for Hoogle and Hackage --- .config/pancake/config.yaml | 9 ++++++--- .config/pancake/unclutter/hackage-haddock.xsl | 25 +++++++++++++++++++++++++ .config/pancake/unclutter/hoogle.xsl | 22 ++++++++++++++++++++++ 3 files changed, 53 insertions(+), 3 deletions(-) create mode 100644 .config/pancake/unclutter/hackage-haddock.xsl create mode 100644 .config/pancake/unclutter/hoogle.xsl (limited to '.config/pancake') diff --git a/.config/pancake/config.yaml b/.config/pancake/config.yaml index af28301..fa3028f 100644 --- a/.config/pancake/config.yaml +++ b/.config/pancake/config.yaml @@ -51,11 +51,14 @@ shortcuts: gp: gopher://gopherpedia.com:70/7/lookup? vs: gopher://gopher.floodgap.com/7/v2/vs? xiph: http://dir.xiph.org/search?search= + hoogle: https://www.haskell.org/hoogle/?hoogle= unclutter: hacker-news: ^https://news\.ycombinator\.com/((news|show|ask).*)?$ - duckduckgo: ^https://duckduckgo.com/lite/\?q= - lobsters: ^https://lobste.rs/((page|recent|newest).*)?$ - github-project: ^https://github.com/[^/]+/[^/]+/?$ + duckduckgo: ^https://duckduckgo\.com/lite/\?q= + lobsters: ^https://lobste\.rs/((page|recent|newest).*)?$ + github-project: ^https://github\.com/[^/]+/[^/]+/?$ + hoogle: ^https://www\.haskell\.org/hoogle/\?hoogle= + hackage-haddock: ^https?://hackage\.haskell\.org/package/[^/]+/docs/[^/]+$ defaultCommand: ! 'curl --compressed -4 -L -w " -pancake- diff --git a/.config/pancake/unclutter/hackage-haddock.xsl b/.config/pancake/unclutter/hackage-haddock.xsl new file mode 100644 index 0000000..e10b66c --- /dev/null +++ b/.config/pancake/unclutter/hackage-haddock.xsl @@ -0,0 +1,25 @@ + + + + + + + + + + + + +
+ + +
+
+ +
+
+ + +
+
diff --git a/.config/pancake/unclutter/hoogle.xsl b/.config/pancake/unclutter/hoogle.xsl new file mode 100644 index 0000000..87a4ea4 --- /dev/null +++ b/.config/pancake/unclutter/hoogle.xsl @@ -0,0 +1,22 @@ + + + + + + + Hoogle: +
    + +
  • + + + + +
    +
  • +
    +
+ + +
+
-- cgit v1.2.3