summaryrefslogtreecommitdiff
path: root/.config/lf
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2024-04-21 16:42:52 -0400
committerBenjamin Chausse <benjamin@chausse.xyz>2024-04-21 16:42:52 -0400
commit54aa168ae10bbbaac3c9c208ae29d7846bbc021e (patch)
treea4e3b5165c1343bef15f946a3386885e75f93223 /.config/lf
parent3a3061d5dfe46d82d3fc90b1e7c919581b1f9662 (diff)
Add xlsx previews as csv to lf
Diffstat (limited to '.config/lf')
-rwxr-xr-x.config/lf/scope3
1 files changed, 3 insertions, 0 deletions
diff --git a/.config/lf/scope b/.config/lf/scope
index 43a91f0..6614dad 100755
--- a/.config/lf/scope
+++ b/.config/lf/scope
@@ -84,6 +84,9 @@ video/*)
application/*zip)
atool --list -- "$1"
;;
+*spreadsheetml.sheet)
+ xlsx2csv -s 1 "$1" | bat --terminal-width "$(($4 - 2))" -l 'csv'
+ ;;
*opendocument*)
odt2txt "$1"
;;