From fff69046b02f3d9ea0218ff071ba5e4d5b3a3c12 Mon Sep 17 00:00:00 2001 From: Aron Lebani Date: Fri, 2 Aug 2024 09:59:33 +1000 Subject: view-message: add option to view message in background tab Add a -b flag to the :view command to open messages in a background tab instead of automatically switching to the new tab after opening. This is similar to opening browser tabs in the background. More generally, adds a new function app.NewBackgroundTab so that it is possible to enable other tabs to be opened in the background in the future. Implements: https://todo.sr.ht/~rjarry/aerc/266 Changelog-added: Add `-b` flag to the `:view` command to open messages in a background tab. Signed-off-by: Aron Lebani Acked-by: Robin Jarry --- doc/aerc.1.scd | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'doc') diff --git a/doc/aerc.1.scd b/doc/aerc.1.scd index 0e9f33ef..30840158 100644 --- a/doc/aerc.1.scd +++ b/doc/aerc.1.scd @@ -713,11 +713,12 @@ message list, the message in the message viewer, etc). Toggles between showing entire thread (when supported) and only showing messages which match the current query / mailbox. -*:view* [*-p*]++ -*:view-message* [*-p*] +*:view* [*-pb*]++ +*:view-message* [*-pb*] Opens the message viewer to display the selected message. If the peek flag *-p* is set, the message will not be marked as seen and ignores the - *auto-mark-read* config. + *auto-mark-read* config. If the background flag *-b* is set, the message + will be opened in a background tab. *:vsplit* [[_+_|_-_]__] Creates a vertical split of the message list. The message list will be -- cgit