diff options
author | inwit <inwit@sindominio.net> | 2023-11-09 21:35:04 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-11-12 12:53:11 +0100 |
commit | c13df799763c6b584cf4963e125361bb16c0e07d (patch) | |
tree | 31262c5de8a47ff7b4d1ca9be75924d80c95173d /doc | |
parent | 063187340ce257a633cc5e6b503112db306be2e6 (diff) | |
download | aerc-c13df799763c6b584cf4963e125361bb16c0e07d.tar.gz |
threads: add .ThreadUnread to template data
When a thread is folded, it can be useful to know how many unseen
messages lie below the root. For example, one might want to show that
count in the message list:
column-folded = {{if .ThreadFolded \
}}{{if ne .ThreadUnread 0 \
}}{{.ThreadUnread | printf "%s/"}}{{ \
end}}{{ .ThreadCount | printf "%s"}}{{end}}
Add `.ThreadUnread` to the template functions.
Changelog-added: `.ThreadUnread` is now available in templates.
Signed-off-by: inwit <inwit@sindominio.net>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/aerc-templates.7.scd | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/aerc-templates.7.scd b/doc/aerc-templates.7.scd index c130ee28..25db5990 100644 --- a/doc/aerc-templates.7.scd +++ b/doc/aerc-templates.7.scd @@ -102,7 +102,10 @@ available always. hidden by *:fold*. _ThreadCount_ - The number of thread children. + The number of messages in the thread. + + _ThreadUnread_ + The number of unread messages in the thread. *Flags* List of message flags, not available when composing, replying nor |