From 8ee61777ada29432783e18a7634ab1150a631987 Mon Sep 17 00:00:00 2001 From: Bence Ferdinandy Date: Fri, 24 Nov 2023 21:28:12 +0100 Subject: templates: display "(no subject)" when subject is empty An empty subject, especially in a thread makes it for a slightly jarring layout. Add a new option empty-subject option to UI with "(no subject") as the default value. If the subject is empty and the current message is not the same subject as it's parent in a thread make {{.Subject}} evaluate to this option's value. Changelog-added: The `{{.Subject}}` template is evaluated to the new option `[ui].empty-subject` if the subject is empty. Signed-off-by: Bence Ferdinandy Acked-by: Robin Jarry --- doc/aerc-config.5.scd | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'doc/aerc-config.5.scd') diff --git a/doc/aerc-config.5.scd b/doc/aerc-config.5.scd index 19723f81..00d9dfd9 100644 --- a/doc/aerc-config.5.scd +++ b/doc/aerc-config.5.scd @@ -170,6 +170,11 @@ These options are configured in the *[ui]* section of _aerc.conf_. Default: _(no folders)_ +*empty-subject* = __ + Text to display in message list, when the subject is empty. + + Default: _(no subject)_ + *mouse-enabled* = _true_|_false_ Enable mouse events in the ui, e.g. clicking and scrolling with the mousewheel -- cgit