From 5fe085f39f5bdcc23c145a1b816ee3c74aa71a94 Mon Sep 17 00:00:00 2001 From: Andrew Date: Tue, 10 Sep 2024 14:46:10 +0100 Subject: [PATCH] [file_previewer.sh]: Add HTML file previews with lynx --- file_previewer.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/file_previewer.sh b/file_previewer.sh index 70435b8..9fbd234 100755 --- a/file_previewer.sh +++ b/file_previewer.sh @@ -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";;