diff options
author | Tim Culverhouse <tim@timculverhouse.com> | 2023-01-26 10:16:43 -0600 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-01-29 21:47:11 +0100 |
commit | 6b39c0dae1e1c42445a2d8557e48135b02fc729b (patch) | |
tree | d65d2898424178203c0be52c56c255f96f8d51ee /doc/aerc-config.5.scd | |
parent | db60d7edeceaec075f91a802968c397698798d50 (diff) | |
download | aerc-6b39c0dae1e1c42445a2d8557e48135b02fc729b.tar.gz |
tabs: use template for account tab name
Use a go template to render the account tab display. Add config option
for setting a specific template for the account. Add a method on Tab to
allow setting a title, which may be different than the tab Name.
The default template is {{.Account}}.
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'doc/aerc-config.5.scd')
-rw-r--r-- | doc/aerc-config.5.scd | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/aerc-config.5.scd b/doc/aerc-config.5.scd index 74481b10..4939cf3d 100644 --- a/doc/aerc-config.5.scd +++ b/doc/aerc-config.5.scd @@ -163,6 +163,15 @@ These options are configured in the *[ui]* section of _aerc.conf_. Default: _true_ +*tab-title-account* = _<go_template>_ + The template to use for account tab titles. See *aerc-templates*(7) for + available field names. To conditionally show the unread count next to + the account name, set to: + + *tab-title-account* = {{.Account}} {{if .Unread}}({{.Unread}}){{end}} + + Default: _{{.Account}}_ + *pinned-tab-marker* = _"<string>"_ Marker to show before a pinned tab's name. |