From a43c595fdaf36f34955585d2941f25d2b9821011 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Tue, 19 Apr 2022 19:49:55 +0200 Subject: [PATCH] pdftool integration in foreground for filing & processing --- .config/mutt/keybindings | 3 ++- .config/mutt/mailcap.editing | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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 -- 2.39.5