summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xseek5
1 files changed, 2 insertions, 3 deletions
diff --git a/seek b/seek
index 571219b..91b8773 100755
--- a/seek
+++ b/seek
@@ -1,14 +1,13 @@
#!/usr/bin/env bash
set -euo pipefail
-RG_DEFAULT_COMMAND="rg --ignore-case --files-with-matches $*"
+RG="rg --ignore-case --files-with-matches $*"
readarray -t selected <<< "$(fzf-tmux \
-p "70%" \
--multi \
--exact \
--ansi \
- --phony \
--bind "ctrl-a:select-all" \
- --bind "change:reload:$RG_DEFAULT_COMMAND {q} || true" \
+ --bind "change:reload:$RG {q} || true" \
--print-query \
--preview "rg --ignore-case --pretty --context 2 {q} {}" \
--preview-window down