lf: preview csv
This commit is contained in:
parent
19596bdc20
commit
576aa6865d
1 changed files with 6 additions and 0 deletions
|
@ -98,6 +98,12 @@ mimetest() {
|
||||||
video/*) cached_image ffmpegthumbnailer -s 0 -i "$f" -o "/dev/stdout" ;;
|
video/*) cached_image ffmpegthumbnailer -s 0 -i "$f" -o "/dev/stdout" ;;
|
||||||
*/vnd.oasis.opendocument.text) cached_text odt2txt "$f" ;;
|
*/vnd.oasis.opendocument.text) cached_text odt2txt "$f" ;;
|
||||||
*/vnd.openxmlformats-officedocument.wordprocessingml.document) cached_text docx2txt "$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)
|
*/markdown)
|
||||||
export COLORTERM=truecolor
|
export COLORTERM=truecolor
|
||||||
export CLICOLOR_FORCE=1
|
export CLICOLOR_FORCE=1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue