dotfiles-x1175b3017
use bat instead of cat in lf text preview
+1 −1
1 file changed
- M .config/lf/scope +1 −1
| @@ -25,7 +25,7 @@ case "$(file --dereference --brief --mime-type -- "$1")" in | |||
| 25 | 25 | image/*) image "$1" "$2" "$3" "$4" "$5" "$1" ;; | |
| 26 | 26 | text/html) lynx -width="$4" -display_charset=utf-8 -dump "$1" ;; | |
| 27 | 27 | text/troff) man ./ "$1" | col -b ;; | |
| 28 | − | text/* | */xml | application/json) cat "$1" ;; | |
| 28 | + | text/* | */xml | application/json) bat --terminal-width "$(($4-2))" -f "$1" ;; | |
| 29 | 29 | application/zip) atool --list -- "$1" ;; | |
| 30 | 30 | audio/* | application/octet-stream) mediainfo "$1" || exit 1 ;; | |
| 31 | 31 | video/* ) | |