dotfiles

[lf] use glow for markdown (needs more improvement)

+2
+2
lf/previewer.sh
··· 9 9 7z|zip) 7z l -p -- "$1" && exit 1;; 10 10 jpeg|jpg|png|gif) chafa --clear --animate=off --symbols space -s "$2x$3" "$1" && exit 1;; 11 11 # TODO: add fallback to chafa 12 + md) glow -w "$2" -p -s dark "$1" || cat $1 && exit 1;; 13 + # TODO: use 'cat' first, then replace it with glow 12 14 *) bat --style=plain --color=always "$1" || cat "$1" && exit 1;; 13 15 esac