summaryrefslogtreecommitdiff
path: root/Biz/Ide/hoog.sh
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2021-12-16 07:57:39 -0500
committerBen Sima <ben@bsima.me>2021-12-21 11:01:54 -0500
commit47287f3b218e7f30e2ce5b1bdd7f6b0f3fac41ee (patch)
tree4fa04bcc416aac10b198287142d400d13f094194 /Biz/Ide/hoog.sh
parent3fad7346721514af8bbe457abd61aab97916d2e3 (diff)
Add hoog.sh, improve ide scripts
Diffstat (limited to 'Biz/Ide/hoog.sh')
-rwxr-xr-xBiz/Ide/hoog.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/Biz/Ide/hoog.sh b/Biz/Ide/hoog.sh
new file mode 100755
index 0000000..5379e54
--- /dev/null
+++ b/Biz/Ide/hoog.sh
@@ -0,0 +1,14 @@
+#!/usr/bin/env bash
+#
+# search hoogle with fzf
+#
+ set -euo pipefail
+ HOOG="hoogle search --count=200"
+ export FZF_DEFAULT_COMMAND="$HOOG $@"
+ fzf \
+ --preview-window=down \
+ --preview "hoogle search --link --info {+2}" \
+ --bind "change:reload:$HOOG {q} || true" \
+ --print-query \
+ --ansi
+##