From d3b62dd3b0fe6f5f1fb52e4fa9247cf9b27cbb3c Mon Sep 17 00:00:00 2001 From: Koni Marti Date: Mon, 3 Oct 2022 23:56:07 +0200 Subject: view: add peek flag and propagate Add a peek flag -p to the view commands to open the message viewer without setting the "seen" flag. If the flag is set, it would ignore the "auto-mark-read" config. The SetSeen flag will be propagated in case the message viewer moves on to other messages, i.e. with the delete or archive commands. Signed-off-by: Koni Marti Acked-by: Robin Jarry --- commands/msgview/next.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands/msgview') diff --git a/commands/msgview/next.go b/commands/msgview/next.go index b9e5dbda..6341f931 100644 --- a/commands/msgview/next.go +++ b/commands/msgview/next.go @@ -42,7 +42,7 @@ func (NextPrevMsg) Execute(aerc *widgets.Aerc, args []string) error { aerc.RemoveTab(mv) return nil } - lib.NewMessageStoreView(nextMsg, acct.UiConfig().AutoMarkRead, + lib.NewMessageStoreView(nextMsg, mv.MessageView().SeenFlagSet(), store, aerc.Crypto, aerc.DecryptKeys, func(view lib.MessageView, err error) { if err != nil { -- cgit