summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <git@mx.buetow.org>2021-02-02 07:41:06 +0000
committerPaul Buetow <git@mx.buetow.org>2021-02-02 07:41:06 +0000
commit1ca97670c6c998ed4cf8de225b089a53f04586ef (patch)
treeaa8d2bdb53a068e18cd1ad122f3957af6912977d
parentc3493b103fb35ee852c13b67c709f25f93267483 (diff)
add clihive integration for gathering results
-rw-r--r--fzf-integration.source.zsh6
1 files changed, 6 insertions, 0 deletions
diff --git a/fzf-integration.source.zsh b/fzf-integration.source.zsh
new file mode 100644
index 0000000..38a1d27
--- /dev/null
+++ b/fzf-integration.source.zsh
@@ -0,0 +1,6 @@
+INITIAL_QUERY=""
+CLIHIVE_PREFIX="wc <<< "
+FZF_DEFAULT_COMMAND="$CLIHIVE_PREFIX '$INITIAL_QUERY'" \
+ fzf --bind "change:reload:$CLIHIVE_PREFIX {q} || true" \
+ --ansi --disabled --query "$INITIAL_QUERY" \
+ --height=50% --layout=reverse