summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-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