summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-02-10 17:53:24 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-02-10 17:53:24 +0900
commit7d6cab29fa590a92db3d057d93980f27f7e9aa1a (patch)
tree19c2b9a38f01a09214f335960d596fc48dc96c0e
parent5fd40cc4bccf09d01560a2ff7b20973c95f264da (diff)
modified share/mailcap
-rw-r--r--share/mailcap26
1 files changed, 21 insertions, 5 deletions
diff --git a/share/mailcap b/share/mailcap
index cf6e3b3..e9baa92 100644
--- a/share/mailcap
+++ b/share/mailcap
@@ -166,21 +166,28 @@ video/*; mpv --aid=no --vid=no --sid=no '%s' || : ; co
# video/*; mediainfo %s; copiousoutput
# Text
+text/markdown; nvim %s; test=test -n "$DISPLAY"
text/markdown; gvim %s; test=test -n "$DISPLAY"
text/markdown; mdcat %s; copiousoutput
-text/html; /usr/local/lib/mutt-wizard/openfile "${BROWSER:-firefox}" %s; test=test -n "$DISPLAY"; description="HTML Document"
-# text/html; pandoc --from=html --to=markdown %s | mdcat; copiousoutput
-# text/html; pandoc --from=html --to=man %s | groff -Tutf8 -man; copiousoutput
-# text/html; w3m -I %{charset} -T text/html; charset=%{charset:-UTF-8}; copiousoutput; description="HTML Document"
-text/html; w3m -T text/html; copiousoutput; description="HTML Document"
+text/html; /usr/local/lib/mutt-wizard/openfile ${firefox:-librewolf} %s; test=test -n "$DISPLAY"; description="HTML Document"
+text/html; lynx -assume_charset=%{charset} -display_charset=utf-8 -dump -width=1024 %s; copiousoutput; needsterminal; nametemplate=%s.html; description="HTML Document in lynx"
+# text/html; pandoc --from=html --to=markdown %s | mdcat; copiousoutput
+# text/html; pandoc --from=html --to=man %s | groff -Tutf8 -man; copiousoutput
+# text/html; w3m -I %{charset} -T text/html; charset=%{charset:-UTF-8}; copiousoutput; needsterminal; nametemplate=%s.html; description="HTML Document"
+text/html; w3m -T text/html; copiousoutput; needsterminal; nametemplate=%s.html; description="HTML Document"
+application/json; nvim %s; test=test -n "$DISPLAY"
application/json; gvim %s; test=test -n "$DISPLAY"
application/json; jq --color-output . %s; copiousoutput
+text/x-vcard; nvim %s; test=test -n "$DISPLAY"
text/x-vcard; gvim %s; test=test -n "$DISPLAY"
text/x-vcard; /usr/local/bin/mutt.vcard.filter; copiousoutput
+text/calendar; nvim %s; test=test -n "$DISPLAY"
+text/x-vcalendar; nvim %s; test=test -n "$DISPLAY"
+application/ics; nvim %s; test=test -n "$DISPLAY"
text/calendar; gvim %s; test=test -n "$DISPLAY"
text/x-vcalendar; gvim %s; test=test -n "$DISPLAY"
application/ics; gvim %s; test=test -n "$DISPLAY"
@@ -196,10 +203,19 @@ application/ics; /usr/local/bin/vcalendar-filter; nametemplate
# PGP
application/pgp-encrypted; gpg -d '%s'; copiousoutput;
application/pgp-keys; gpg --import '%s'; copiousoutput;
+application/pgp-signature; nvim %s; test=test -n "$DISPLAY"
application/pgp-signature; gvim %s; test=test -n "$DISPLAY"
application/pgp-signature; bat --paging=never --style=plain --color=always --theme=ansi %s; copiousoutput
application/x-subrip; $EDITOR %s;
+application/x-tex; nvim %s; test=test -n "$DISPLAY"
+application/x-latex; nvim %s; test=test -n "$DISPLAY"
+application/x-perl; nvim %s; test=test -n "$DISPLAY"
+application/x-script; nvim %s; test=test -n "$DISPLAY"
+application/x-shellscript; nvim %s; test=test -n "$DISPLAY"
+application/x-sh; nvim %s; test=test -n "$DISPLAY"
+application/x-diff; nvim %s; test=test -n "$DISPLAY"
+application/x-patch; nvim %s; test=test -n "$DISPLAY"
application/x-tex; gvim %s; test=test -n "$DISPLAY"
application/x-latex; gvim %s; test=test -n "$DISPLAY"
application/x-perl; gvim %s; test=test -n "$DISPLAY"