[file_previewer.sh]: Add TOML file previews with bat
This commit is contained in:
@ -20,6 +20,9 @@ case "$(mimetype --brief -- "$file")" in
|
||||
pdftoppm -jpeg "$file" -singlefile | chafa --size "$(($width-4))"x"$height"
|
||||
pdfinfo "$file" | bat --theme='base16' --terminal-width "$(($width-4))" --force-colorization;;
|
||||
|
||||
application/toml)
|
||||
bat --theme='base16' --terminal-width "$(($width-4))" --force-colorization "$file";;
|
||||
|
||||
application/vnd.sqlite3)
|
||||
sqlite3 "$file" "SELECT * FROM sqlite_master WHERE type = 'table';" | bat --theme='base16' --terminal-width "$(($width-4))" --force-colorization;;
|
||||
|
||||
|
Reference in New Issue
Block a user