]> git.newer.systems Git - .config.git/commitdiff
sc-im
authorTucker Johnson <tucker@newer.systems>
Tue, 23 Dec 2025 13:36:43 +0000 (08:36 -0500)
committerTucker Johnson <tucker@newer.systems>
Tue, 23 Dec 2025 13:36:43 +0000 (08:36 -0500)
lf/icons
lf/lfrc

index c3a1f03664debb73b239fcfc9dcc327bb6e47f02..df1666a03a91044e7ece218cf9d1824b8fb65b45 100644 (file)
--- a/lf/icons
+++ b/lf/icons
@@ -31,6 +31,7 @@ ex    ❗
 *.epub 📗
 *.csv  📒
 *.xlsx 📒
+*.sc   📒
 *.sent  📽️
 *.tex  ✒️
 *.md   📔
diff --git a/lf/lfrc b/lf/lfrc
index 937c10ba1e51f5c0805acc68874d88a19757a49f..33f5279e392f7162166b74c0bf1eb8d5616ee543 100644 (file)
--- a/lf/lfrc
+++ b/lf/lfrc
@@ -13,8 +13,9 @@ set autoquit true
 cmd open ${{
     case $(file --mime-type "$(readlink -f $f)" -b) in
        application/vnd.openxmlformats-officedocument.spreadsheetml.sheet) localc $fx ;;
+    application/x-sc) sc-im $fx ;;
        image/vnd.djvu|application/pdf|application/postscript) setsid -f zathura $fx >/dev/null 2>&1 ;;
-        text/*|application/json|inode/x-empty|application/x-subrip) $EDITOR $fx;;
+    text/*|application/json|inode/x-empty|application/x-subrip) $EDITOR $fx;;
        image/x-xcf) setsid -f gimp $f >/dev/null 2>&1 ;;
        image/svg+xml) display -- $f ;;
        image/*) rotdir $f | grep -i "\.\(png\|jpg\|jpeg\|gif\|webp\|avif\|tif\|ico\)\(_large\)*$" |