summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <chaffinach+git@protonmail.ch>2022-06-13 08:29:22 +0100
committerMatthew Lemon <chaffinach+git@protonmail.ch>2022-06-13 08:29:22 +0100
commit6e07af279e9dc40a7dc07cfdd2d9ec7a51efdff3 (patch)
tree51561a3f35148c70527ffa30c0cee8e8f308a3c5
parent340afab1dee2aa924cb495fbc65ca46d6ca12eda (diff)
updated mailcap to handle diffs
-rw-r--r--mailcap3
-rw-r--r--mutt2022/mailcap3
2 files changed, 6 insertions, 0 deletions
diff --git a/mailcap b/mailcap
index 032b0a9..c1be0b3 100644
--- a/mailcap
+++ b/mailcap
@@ -53,6 +53,9 @@ video/*; mpv '%s' --autofit 640x480 --loop=inf; test=test -n "$DISPLAY"
# Don't have a solution for albums yet
image/x-imgur-album; echo
+# patches
+text/x-patch; vimdiff '%s'; needsterminal
+
# 256 color images using half-width unicode characters
# Much higher quality that img2txt, but must be built from source
# https://github.com/rossy/img2xterm
diff --git a/mutt2022/mailcap b/mutt2022/mailcap
index 3657f08..fa01661 100644
--- a/mutt2022/mailcap
+++ b/mutt2022/mailcap
@@ -7,6 +7,9 @@ image/jpeg; ~/.mutt/view_attachment.sh %s jpg feh
image/pjpeg; ~/.mutt/view_attachment.sh %s jpg gpicview
image/png; ~/.mutt/view_attachment.sh %s png gpicview
image/gif; ~/.mutt/view_attachment.sh %s gif gpicview
+#
+# patches
+text/x-patch; vimdiff '%s'; needsterminal
# PDFs
application/pdf; ~/.mutt/view_attachment.sh %s pdf zathura