diff --git a/lf/previewer.sh b/lf/previewer.sh index 9ac6187..46a55c0 100755 --- a/lf/previewer.sh +++ b/lf/previewer.sh @@ -9,5 +9,7 @@ case ${1##*.} in 7z|zip) 7z l -p -- "$1" && exit 1;; jpeg|jpg|png|gif) chafa --clear --animate=off --symbols space -s "$2x$3" "$1" && exit 1;; # TODO: add fallback to chafa + md) glow -w "$2" -p -s dark "$1" || cat $1 && exit 1;; + # TODO: use 'cat' first, then replace it with glow *) bat --style=plain --color=always "$1" || cat "$1" && exit 1;; esac