diff options
author | Bence Ferdinandy <bence@ferdinandy.com> | 2023-11-22 11:54:22 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-11-23 00:14:54 +0100 |
commit | 91b26ad93f93743f3222515755d688e5864d61bd (patch) | |
tree | a70e3c0527f79f38915f1fe641977b175b8bdf14 /doc | |
parent | 019a1a5813fc30440fb8c552b9e03dfe8d5d5d17 (diff) | |
download | aerc-91b26ad93f93743f3222515755d688e5864d61bd.tar.gz |
ui: make viewer tab title configurable via templates
We had account and composer tab title configuration fields already, but
not for viewer. Add tab-title-viewer configuration, which defaults to
Subject if it is not empty and to "(no subject)" when it is empty.
Changelog-added: New `[ui].tab-title-viewer` setting to configure the
message viewer tab title.
Changelog-changed: Message viewer tab titles will now show `(no subject)`
if there is no subject in the viewed email.
Signed-off-by: Bence Ferdinandy <bence@ferdinandy.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/aerc-config.5.scd | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/aerc-config.5.scd b/doc/aerc-config.5.scd index 45c12bd9..19723f81 100644 --- a/doc/aerc-config.5.scd +++ b/doc/aerc-config.5.scd @@ -195,6 +195,12 @@ These options are configured in the *[ui]* section of _aerc.conf_. Default: _{{.Subject}}_ +*tab-title-viewer* = _<go_template>_ + The template to use for viewer tab titles. See *aerc-templates*(7) for + available field names. + + Default: _{{if .Subject}}{{.Subject}}{{else}}(no subject){{end}}_ + *pinned-tab-marker* = _"<string>"_ Marker to show before a pinned tab's name. |