summaryrefslogtreecommitdiff
path: root/seek
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2022-02-09 17:24:28 -0500
committerBen Sima <ben@bsima.me>2022-02-09 17:25:51 -0500
commita54cf64d60dde795a0fa0510ccd25ae910bdda6c (patch)
treea40d7cb272f06b736ce680fdad2163057bb89022 /seek
parent504c362629fb9cfdc982a29624243dfaad7b7800 (diff)
seek: put preview window below cursor
Now my eyes don't have to jump all over
Diffstat (limited to 'seek')
-rwxr-xr-xseek3
1 files changed, 2 insertions, 1 deletions
diff --git a/seek b/seek
index 6948be8..571219b 100755
--- a/seek
+++ b/seek
@@ -10,7 +10,8 @@ readarray -t selected <<< "$(fzf-tmux \
--bind "ctrl-a:select-all" \
--bind "change:reload:$RG_DEFAULT_COMMAND {q} || true" \
--print-query \
- --preview "rg --ignore-case --pretty --context 2 {q} {}"
+ --preview "rg --ignore-case --pretty --context 2 {q} {}" \
+ --preview-window down
)"
query=${selected[0]}
files=("${selected[@]:1}")