From f271ab75017bff50ec6d34205fff6cceb3af70f5 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Wed, 9 Feb 2022 22:14:22 -0500 Subject: seek: simplify --- seek | 5 ++--- 1 file 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 -- cgit v1.2.3