[file_previewer.sh]: Add HTML file previews with lynx

This commit is contained in:
2024-09-10 14:46:10 +01:00
parent cd8c3fbed4
commit 5fe085f39f

View File

@ -49,6 +49,9 @@ case "$(mimetype --brief -- "$file")" in
text/csv)
column --separator "," --table "$file" | bat --theme='base16' --terminal-width "$(($width-4))" --force-colorization;;
text/html)
lynx -width="$width" -display_charset=utf-8 -dump "$file";;
text/*)
bat --theme='base16' --terminal-width "$(($width-4))" --force-colorization "$file";;