From: martin f. krafft Date: Tue, 19 Apr 2022 17:49:55 +0000 (+0200) Subject: pdftool integration in foreground for filing & processing X-Git-Url: https://git.madduck.net/etc/mutt.git/commitdiff_plain/a43c595fdaf36f34955585d2941f25d2b9821011 pdftool integration in foreground for filing & processing --- diff --git a/.config/mutt/keybindings b/.config/mutt/keybindings index 32a6487..e32c1b2 100644 --- a/.config/mutt/keybindings +++ b/.config/mutt/keybindings @@ -74,7 +74,8 @@ macro index,pager \el " set my_editor=\$editor "" "do nothing" -macro attach e " set my_mailcap_path=\$mailcap_path set mailcap_path=$my_confdir/mailcap.editing set mailcap_path=\$my_mailcap_path" "edit temporary file of attachment" +macro attach e " set my_mailcap_path=\$mailcap_path set mailcap_path=$my_confdir/mailcap.editing set mailcap_path=\$my_mailcap_path" "Call pdftool to file attachment" +macro attach E " set my_mailcap_path=\$mailcap_path set mailcap_path=$my_confdir/mailcap.editing set mailcap_path=\$my_mailcap_path" "Call pdftool to process & file attachment" macro index,pager M " set my_weed=\$weed set noweedformail -czx X-RSS-URL: | xargs sensible-browser set weed=\$my_weed" diff --git a/.config/mutt/mailcap.editing b/.config/mutt/mailcap.editing index 4935e63..85f5870 100644 --- a/.config/mutt/mailcap.editing +++ b/.config/mutt/mailcap.editing @@ -1,3 +1,3 @@ -application/pdf; ~/.config/mutt/bgview -t %t -v 'pdftool --file' +application/pdf; pdftool --file -f %s; print=pdftool --proc -f %s application/*; ~/.config/mutt/bgview -t %t image/*; ~/.config/mutt/bgview -t %t