]> git.phdru.name Git - dotfiles.git/commitdiff
.muttrc: View the 1st html attachment from index or pager
authorOleg Broytman <phd@phdru.name>
Wed, 31 Mar 2021 17:19:42 +0000 (20:19 +0300)
committerOleg Broytman <phd@phdru.name>
Wed, 31 Mar 2021 17:19:42 +0000 (20:19 +0300)
.muttrc

diff --git a/.muttrc b/.muttrc
index c5ff07711c85c562ab2c302309c938af1f0a629b..c4c4fc99addb83bccb6be8fe3f46c124b24fede7 100644 (file)
--- a/.muttrc
+++ b/.muttrc
@@ -362,7 +362,12 @@ macro pager,attach M \
    <exit><Home><change-folder>=sent-mail<Enter> \
    "Go to sent-mail"
 
-macro attach V "<save-entry>~/tmp/_xxx.html<Enter><shell-escape>webbrowser -n ~/tmp/_xxx.html; exec rm ~/tmp/_xxx.html<Enter>" \
+macro index,pager \cV "<show-version>" \
+   "Show version"
+
+macro index,pager V "v/text/html<Enter>V" \
+   "View the 1st html attachment in a web browser"
+macro attach V "<save-entry>~/tmp/_xxx.html<Enter><shell-escape>webbrowser -n ~/tmp/_xxx.html; exec rm ~/tmp/_xxx.html<Enter><exit>" \
    "View html attachment in a web browser"
 
 # Go to python mailbox