From 4ec1e1a5e4c74236a6d1992c8778c39fd25d847b Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Mon, 25 Sep 2023 09:07:43 -0500 Subject: ui: enable showing of thread-context Add a UI config value to enable showing of "thread-context", similar to `notmuch show --entire-thread=true`. Add an associated style called "msglist_thread_context" which can be used to style such messages. Currently this feature is only supported by notmuch. It would be possible for maildir to implement as well, IMAP with gmail custom extensions, and JMAP. This patch merely implements the notmuch version and puts the groundwork in for handling these sorts of displays. Signed-off-by: Tim Culverhouse Tested-by: Inwit Acked-by: Robin Jarry --- config/templates.go | 1 + 1 file changed, 1 insertion(+) (limited to 'config/templates.go') diff --git a/config/templates.go b/config/templates.go index 3f0249df..e2adeac2 100644 --- a/config/templates.go +++ b/config/templates.go @@ -78,6 +78,7 @@ func (d *dummyData) Header(string) string { return "" } func (d *dummyData) ThreadPrefix() string { return "└─>" } func (d *dummyData) ThreadCount() int { return 0 } func (d *dummyData) ThreadFolded() bool { return false } +func (d *dummyData) ThreadContext() bool { return true } func (d *dummyData) Subject() string { return "Re: [PATCH] hey" } func (d *dummyData) SubjectBase() string { return "[PATCH] hey" } func (d *dummyData) Attach(string) string { return "" } -- cgit