From 74fe4d3b89b10b80f25a7db0fa0068634a8497f7 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Thu, 23 Feb 2023 12:47:34 -0300 Subject: etc/sh/rc: Put the g() fzf preview-window above For long file names or long code lines, that don't fit on half the screen. --- etc/sh/rc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/etc/sh/rc b/etc/sh/rc index 1050bbe..7c3a07a 100644 --- a/etc/sh/rc +++ b/etc/sh/rc @@ -274,11 +274,11 @@ g() { # shellcheck disable=2086 git grep -E --color=always -n -- "$(cat "$PAT")" ${2:-} | fzf \ - --exit-0 \ - --select-1 \ - --ansi \ - --delimiter=: \ - --preview-window '+{2}+3/3' \ + --exit-0 \ + --select-1 \ + --ansi \ + --delimiter=: \ + --preview-window 'up,+{2}+3/3' \ --preview "$PREVIEW_CMD" )" rm -f "$(dirname "$PAT")"/*-g-shell-function -- cgit v1.2.3