aboutsummaryrefslogtreecommitdiffstats
path: root/doc/aerc.1.scd
diff options
context:
space:
mode:
authorVitaly Ovchinnikov <v@postbox.nz>2023-07-07 10:19:00 +0300
committerRobin Jarry <robin@jarry.cc>2023-07-07 22:55:08 +0200
commit300021cc93c32956342107b754b5406d5a030413 (patch)
tree947728b46d7583620710aeac7c1595e1fde7b625 /doc/aerc.1.scd
parent52203aba5876c0b98172d890dbe448894b8f1dd9 (diff)
downloadaerc-300021cc93c32956342107b754b5406d5a030413.tar.gz
open: add option -d to automatically delete temporary files
By default `:open` leaves its temporary files in the temp directory. The patch adds an option `-d` that defers the deletion of the temporary file when the opener is started. This works well with "sync" openers that don't exit until the user is done with the preview, but may not work with "async" openers that pass the file to their parent process and exit. That's why the automatic deletion needs to be intentionally enabled by using the option. Suggested-by: Robin Jarry <robin@jarry.cc> Signed-off-by: Vitaly Ovchinnikov <v@postbox.nz> Reviewed-by: Moritz Poldrack <moritz@poldrack.dev>
Diffstat (limited to 'doc/aerc.1.scd')
-rw-r--r--doc/aerc.1.scd4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/aerc.1.scd b/doc/aerc.1.scd
index c067929c..5a7c9fc4 100644
--- a/doc/aerc.1.scd
+++ b/doc/aerc.1.scd
@@ -463,12 +463,14 @@ message list, the message in the message viewer, etc).
Cycles between message parts being shown. The list of message parts is shown
at the bottom of the message viewer.
-*:open* [_<args...>_]
+*:open* [*-d*] [_<args...>_]
Saves the current message part to a temporary file, then opens it. If no
arguments are provided, it will open the current MIME part with the
matching command in the *[openers]* section of _aerc.conf_. When no match
is found in *[openers]*, it falls back to the default system handler.
+ *-d*: Delete the temporary file after the opener exits
+
When arguments are provided:
- The first argument must be the program to open the message part with.