diff options
author | Robin Jarry <robin@jarry.cc> | 2023-02-03 13:14:35 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-02-20 14:48:42 +0100 |
commit | 6cfbc87d8ab0be8d264d81b0b1f26e7b96719dfc (patch) | |
tree | c09b6b671bd90504ce0e90512b39b31f650f37fb /config/aerc.conf | |
parent | d74400ac07a9f149e89fdf2b7232ffc6871f8553 (diff) | |
download | aerc-6cfbc87d8ab0be8d264d81b0b1f26e7b96719dfc.tar.gz |
dirlist: use templates instead of % mini language
Replace dirlist-format with two settings: dirlist-left & dirlist-right.
These two settings take aerc-templates(7) and may be left empty.
Add automatic translation of dirlist-format to these new settings.
Display a warning on startup if dirlist-format has been converted.
Signed-off-by: Robin Jarry <robin@jarry.cc>
Acked-by: Tim Culverhouse <tim@timculverhouse.com>
Diffstat (limited to 'config/aerc.conf')
-rw-r--r-- | config/aerc.conf | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/config/aerc.conf b/config/aerc.conf index 38049b77..d4e964a9 100644 --- a/config/aerc.conf +++ b/config/aerc.conf @@ -136,10 +136,17 @@ # Default: ` #pinned-tab-marker='`' -# Describes the format string to use for the directory list +# Template for the left side of the directory list. +# See aerc-templates(7) for all available fields and functions. # -# Default: %n %>r -#dirlist-format=%n %>r +# Default: {{.Folder}} +#dirlist-left={{.Folder}} + +# Template for the right side of the directory list. +# See aerc-templates(7) for all available fields and functions. +# +# Default: {{if .Unread}}{{humanReadable .Unread}}/{{end}}{{if .Exists}}{{humanReadable .Exists}}{{end}} +#dirlist-right={{if .Unread}}{{humanReadable .Unread}}/{{end}}{{if .Exists}}{{humanReadable .Exists}}{{end}} # Delay after which the messages are actually listed when entering a directory. # This avoids loading messages when skipping over folders and makes the UI more |