diff options
Diffstat (limited to 'Biz/Ide/hoog.sh')
-rwxr-xr-x | Biz/Ide/hoog.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Biz/Ide/hoog.sh b/Biz/Ide/hoog.sh index 3945f90..976f0d4 100755 --- a/Biz/Ide/hoog.sh +++ b/Biz/Ide/hoog.sh @@ -5,10 +5,13 @@ set -euo pipefail HOOG="hoogle search --count=200" export FZF_DEFAULT_COMMAND="$HOOG $*" - fzf \ + result=$(fzf-tmux \ --preview-window=down \ --preview "hoogle search --link --info {+2}" \ --bind "change:reload:$HOOG {q} || true" \ - --print-query \ - --ansi + --ansi \ + | cut -d' ' -f 1,2 \ + | sed -e 's/ /./g' + ) + hoogle search --info "$result" ## |