aerc/doc
Robin Jarry 45bff88515 open: allow overriding default program
Instead of xdg-open (or open on MacOS), allow forcing a program to open
a message part. The program is determined in that order of priority:

1) If :open has arguments, they will be used as command to open the
   attachment. If the arguments contain the {} placeholder, the
   temporary file will be substituted, otherwise the file path is added
   at the end of the arguments.

2) If a command is specified in the [openers] section of aerc.conf for
   the part MIME type, then it is used with the same rules of {}
   substitution.

3) Finally, fallback to xdg-open/open with the file path as argument.

Update the docs and default config accordingly with examples.

Fixes: https://todo.sr.ht/~rjarry/aerc/64
Co-authored-by: Jason Stewart <support@eggplantsd.com>
Signed-off-by: Robin Jarry <robin@jarry.cc>
Tested-by: Tim Culverhouse <tim@timculverhouse.com>
Acked-by: Moritz Poldrack <moritz@poldrack.dev>
2022-10-01 15:47:25 +02:00
..
aerc-config.5.scd open: allow overriding default program 2022-10-01 15:47:25 +02:00
aerc-imap.5.scd doc: document IMAP idle options 2022-09-15 20:59:19 +02:00
aerc-maildir.5.scd worker/maildir: implement Maildir++ support 2022-07-10 20:34:47 +02:00
aerc-notmuch.5.scd doc: fix man page typos 2022-08-22 09:49:26 +02:00
aerc-search.1.scd doc: fix typos 2022-07-18 13:58:27 +02:00
aerc-sendmail.5.scd doc: correct typo in man-pages 2022-01-26 19:23:29 +01:00
aerc-smtp.5.scd doc: correct typo in man-pages 2022-01-26 19:23:29 +01:00
aerc-stylesets.7.scd doc: fix man page typos 2022-08-22 09:49:26 +02:00
aerc-templates.7.scd compose: allow setting all headers in templates 2022-02-03 09:55:20 +01:00
aerc-tutorial.7.scd doc: correct typo in man-pages 2022-01-26 19:23:29 +01:00
aerc.1.scd open: allow overriding default program 2022-10-01 15:47:25 +02:00