Browse Source

fv previews

DanielFGray 9 months ago
parent
commit
c1bbd91c7e
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      fv

+ 1
- 1
fv View File

@@ -180,7 +180,7 @@ fi
180 180
 
181 181
 main() {
182 182
   choices=$($search_cmd "${search_opts[@]}" 2> /dev/null |
183
-  fzf -e --ansi --cycle --multi --reverse ${small:+--reverse --height=50%}) || exit 1
183
+    fzf --ansi --multi --preview='[[ $(file -b {}) = *text* ]] && highlight -q --force -O ansi {}') || exit 1
184 184
 
185 185
   if [[ "$search_str" != '' ]]; then
186 186
     if [[ $search_cmd == 'ag' ]]; then

Loading…
Cancel
Save