From 949781fa0a5f0654112b4f78558347ca991a89d3 Mon Sep 17 00:00:00 2001 From: Reto Brunner Date: Sat, 30 Jan 2021 11:33:31 +0100 Subject: Refactor lib/open to accept user provided arguments * Get rid of open_darwin It just lead to code duplication for a simple one string change. Instead we query it during initialization * Accept user provided arguments "open" on MacOS accepts things like -A to use a specific application Pass trough arguments the user provided in order to facilitate this * Refactor the function to a struct This makes it more convenient for the caller and avoids signatures like lib.OpenFile(nil, u.String(), nil) which are fairly unreadable --- doc/aerc.1.scd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/aerc.1.scd') diff --git a/doc/aerc.1.scd b/doc/aerc.1.scd index 58f35bc..f678a0a 100644 --- a/doc/aerc.1.scd +++ b/doc/aerc.1.scd @@ -307,9 +307,9 @@ 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* +*open* [args...] Saves the current message part in a temporary file and opens it - with the system handler. + with the system handler. Any given args are forwarded to the open handler *save* [-fp] Saves the current message part to the given path. -- cgit v1.2.3