[Jumps] Support preview window (#1553)

Require fzf 0.54.0 or above

Signed-off-by: zeminzhou <zhouzemin@pingcap.cn>
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
This commit is contained in:
zzm
2024-07-19 20:39:44 +08:00
committed by GitHub
parent 279e1ec068
commit 3e2ed513d4
6 changed files with 38 additions and 20 deletions

View File

@@ -47,7 +47,9 @@ fi
FILE="${FILE/#\~\//$HOME/}"
if [ ! -r "$FILE" ]; then
echo "File not found ${FILE}"
if [[ "${INPUT[0]}" != '[No Name]' ]]; then
echo "File not found ${FILE}"
fi
exit 1
fi