neomutt: Add ics to calendar by printing it

By invoking 'print' for ics files from neomutt we can simply
add it to our local calendar directly from the interface.
Neat little 'cheat' to provide custom functions for specific
file types.
This commit is contained in:
Marty Oehme 2024-02-10 13:41:30 +01:00
parent b47043d42b
commit 044eedea32
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A

View file

@ -6,8 +6,8 @@ text/html; render-prettyhtml %s; nametemplate=%s.html; copiousoutput;
text/plain; $EDITOR %s ;
# show calendar invites
text/calendar; mutt-ics; copiousoutput
application/ics; mutt-ics; copiousoutput
text/calendar; mutt-ics; description=ics details; copiousoutput; print=khal import %s; needsterminal
application/ics; mutt-ics; description=ics details; copiousoutput; print=khal import %s; needsterminal
# open images externally
image/*; imv %s ;