diff options
author | Ben Sima <ben@bsima.me> | 2022-02-09 22:14:22 -0500 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2022-02-09 22:14:22 -0500 |
commit | f271ab75017bff50ec6d34205fff6cceb3af70f5 (patch) | |
tree | 8843182cf8ee76978cba51593e2ba7f6bae98678 | |
parent | a54cf64d60dde795a0fa0510ccd25ae910bdda6c (diff) |
seek: simplify
-rwxr-xr-x | seek | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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 |