summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2022-02-09 22:14:22 -0500
committerBen Sima <ben@bsima.me>2022-02-09 22:14:22 -0500
commitf271ab75017bff50ec6d34205fff6cceb3af70f5 (patch)
tree8843182cf8ee76978cba51593e2ba7f6bae98678
parenta54cf64d60dde795a0fa0510ccd25ae910bdda6c (diff)
seek: simplify
-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