aerc: Add flag formatting

This commit is contained in:
Marty Oehme 2025-09-20 23:15:33 +02:00
parent 4ab05e738a
commit d92eaad036
Signed by: Marty
GPG key ID: 4E535BC19C61886E

View file

@ -12,6 +12,34 @@ index-columns = flags>4,name<20%,subject,date>=
this-week-time-format = Mon 02
sidebar-width = 15
# column-separator = "│"
column-flags = {{.Flags | join ""}} \
{{map .Labels (exclude .Folder) \
(case `^new$` (.Style "" "attention")) \
(case `^unread$` (.Style "" "accent")) \
(case `^attachment$` (.Style "󰁦" "subdued")) \
(case `^replied$` (.Style "↻" "subdued")) \
(case `^forwarded$` (.Style "f" "")) \
(case `^flagged$` (.Style "!" "highlight")) \
(case `^important$` (.Style "" "highlight")) \
(default "") \
| join "" }}
column-subject = {{(.Style .ThreadPrefix "subdued")}}{{if .ThreadFolded}}{{printf (.Style "%d " "subdued") .ThreadCount}}{{end}}{{.Subject}}
icon-new = ""
icon-old = ""
icon-attachment = ""
icon-replied = ""
icon-forwarded = ""
icon-deleted = ""
icon-flagged = ""
icon-marked = ""
icon-signed = ""
icon-encrypted = ""
icon-unknown = ""
icon-invalid = ""
threading-enabled = true
reverse-thread-order = true
show-thread-context = true