From c1bbd91c7ec039bfa8c107c4d284405712e84bc6 Mon Sep 17 00:00:00 2001 From: DanielFGray Date: Fri, 22 Jun 2018 20:42:47 -0500 Subject: [PATCH] fv previews --- fv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fv b/fv index a0331f6..37358cd 100755 --- a/fv +++ b/fv @@ -180,7 +180,7 @@ fi main() { choices=$($search_cmd "${search_opts[@]}" 2> /dev/null | - fzf -e --ansi --cycle --multi --reverse ${small:+--reverse --height=50%}) || exit 1 + fzf --ansi --multi --preview='[[ $(file -b {}) = *text* ]] && highlight -q --force -O ansi {}') || exit 1 if [[ "$search_str" != '' ]]; then if [[ $search_cmd == 'ag' ]]; then