1
0
Fork 0

lf: preview csv

This commit is contained in:
Luca Bilke 2025-03-07 11:14:02 +01:00
parent 19596bdc20
commit 576aa6865d
Signed by: luca
GPG key ID: F6E11C9BAA7C82F5

View file

@ -98,6 +98,12 @@ mimetest() {
video/*) cached_image ffmpegthumbnailer -s 0 -i "$f" -o "/dev/stdout" ;;
*/vnd.oasis.opendocument.text) cached_text odt2txt "$f" ;;
*/vnd.openxmlformats-officedocument.wordprocessingml.document) cached_text docx2txt "$f" - ;;
*/csv)
export COLORTERM=truecolor
export CLICOLOR_FORCE=1
# TODO: caching
mlr --icsv --omd cat "$f" | glow -w "$w" -s tokyo-night
;;
*/markdown)
export COLORTERM=truecolor
export CLICOLOR_FORCE=1