commit c5bc5fdc9868ce322ccd91fe643d4282f15e0a4e
parent b83eb5ba13be6e30d156f2233ca889d846b2f058
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Tue, 2 Feb 2021 08:31:36 +0100
muttrc: add <space-w> binding for opening html attachments from index/pager
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/.config/mutt/muttrc b/.config/mutt/muttrc
@@ -122,6 +122,7 @@ bind attach <return> view-mailcap
macro attach w "<enter-command>unset wait_key<enter>\
<pipe-message>w3m -T text/html -I utf8<enter>\
<enter-command>set wait_key<enter>" "pipe to w3m"
+macro index,pager \ w "<view-attachments>/html<enter><view-mailcap><exit>" "view first html attachment"
# vi-like movement
bind attach,index,browser gg first-entry