From 8e25ac2c4f606f3a82e079e0c4efa662b6c4e442 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Mon, 25 Jul 2022 09:56:12 -0400 Subject: Add tags support for more languages Rust seems to not be supported in my ctags version :( Also rename some Ide scripts because these are commands, not really scripts. --- Biz/Ide/hoog | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 Biz/Ide/hoog (limited to 'Biz/Ide/hoog') diff --git a/Biz/Ide/hoog b/Biz/Ide/hoog new file mode 100755 index 0000000..976f0d4 --- /dev/null +++ b/Biz/Ide/hoog @@ -0,0 +1,17 @@ +#!/usr/bin/env bash +# +# search hoogle with fzf +# + set -euo pipefail + HOOG="hoogle search --count=200" + export FZF_DEFAULT_COMMAND="$HOOG $*" + result=$(fzf-tmux \ + --preview-window=down \ + --preview "hoogle search --link --info {+2}" \ + --bind "change:reload:$HOOG {q} || true" \ + --ansi \ + | cut -d' ' -f 1,2 \ + | sed -e 's/ /./g' + ) + hoogle search --info "$result" +## -- cgit v1.2.3