updated html to be previewed using bat rather than lynx in lf

This commit is contained in:
Solomon Laing 2022-07-11 17:13:03 +09:30
parent ea2ea07760
commit 2de59cab2e

View File

@ -23,7 +23,7 @@ ifub() {
case "$(file --dereference --brief --mime-type -- "$1")" in
image/*) image "$1" "$2" "$3" "$4" "$5" "$1" ;;
text/html) lynx -width="$4" -display_charset=utf-8 -dump "$1" ;;
#text/html) lynx -width="$4" -display_charset=utf-8 -dump "$1" ;;
text/troff) man ./ "$1" | col -b ;;
text/* | */xml | application/json) bat --terminal-width "$(($4-2))" -f "$1" ;;
application/zip) atool --list -- "$1" ;;