neomutt: Add attaching/saving files with file manager

This commit is contained in:
Marty Oehme 2025-09-08 21:56:40 +02:00
parent fcb6bcb924
commit 519e4ba803
Signed by: Marty
GPG key ID: 4E535BC19C61886E
2 changed files with 77 additions and 0 deletions

View file

@ -74,6 +74,10 @@ bind pager G bottom
# markdown to html for composition
macro compose ,m "F pandoc -s -f markdown -t html \ny^T^Utext/html; charset=UTF-8\n" "Convert from MD to HTML"
# attach and save file attachments
macro compose a '<enter-command>source "neomutt-filer attach"|<enter>' "Attach with file manager"
macro attach s '<enter-command>source "neomutt-filer saveto"|<enter>' "Save attachment to dir"
# since we unbound the original g
bind index,pager r noop # to avoid accidentally sending replies
bind index,pager rr group-reply