From c2c5cbd4c0d6254ce4553e56f1b2b010858eb869 Mon Sep 17 00:00:00 2001 From: Bence Ferdinandy Date: Thu, 24 Nov 2022 15:11:26 +0100 Subject: view: add close-on-reply option Opening an email to view and then to reply will have two tabs open, and after a reply the view tab needs to be closed manually. Allow the user to set a close-on-reply option that will close the viewer tab when replying and reopen the viewer tab in case the reply is not sent. Signed-off-by: Bence Ferdinandy Tested-by: Inwit Signed-off-by: Robin Jarry --- config/viewer.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'config') diff --git a/config/viewer.go b/config/viewer.go index c00e62f4..3f7c6934 100644 --- a/config/viewer.go +++ b/config/viewer.go @@ -15,6 +15,7 @@ type ViewerConfig struct { ParseHttpLinks bool `ini:"parse-http-links"` HeaderLayout [][]string `ini:"-"` KeyPassthrough bool `ini:"-"` + CloseOnReply bool `ini:"close-on-reply"` } func defaultViewerConfig() ViewerConfig { @@ -29,6 +30,7 @@ func defaultViewerConfig() ViewerConfig { {"Subject"}, }, ParseHttpLinks: true, + CloseOnReply: false, } } -- cgit