From b267de83e38c09d34215e7a33991ae5c111fe649 Mon Sep 17 00:00:00 2001 From: Koni Marti Date: Fri, 14 Jul 2023 20:37:32 +0200 Subject: templates: add ThreadCount and ThreadFolded Add the number of threads and a flag to indicated folded threads to the template data. Use {{.ThreadCount}} and {{.ThreadFolded}} in template expression for the message list. column-subject = {{.ThreadPrefix}}{{if .ThreadFolded}}[{{.ThreadCount}}] {{end}}{{.Subject}} Update default configuration accordingly. Signed-off-by: Koni Marti Signed-off-by: Robin Jarry Tested-by: inwit --- doc/aerc-config.5.scd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/aerc-config.5.scd') diff --git a/doc/aerc-config.5.scd b/doc/aerc-config.5.scd index 06f7c0b0..573ae557 100644 --- a/doc/aerc-config.5.scd +++ b/doc/aerc-config.5.scd @@ -116,7 +116,7 @@ These options are configured in the *[ui]* section of _aerc.conf_. column-date = {{.DateAutoFormat .Date.Local}} column-name = {{index (.From | names) 0}} column-flags = {{.Flags | join ""}} - column-subject = {{.Subject}} + column-subject = {{.ThreadPrefix}}{{if .ThreadFolded}}{{printf "{%d}" .ThreadCount}}{{end}}{{.Subject}} ``` See *aerc-templates*(7) for all available symbols and functions. -- cgit