From d92eaad036890e2c50a648b614d4548174ead659 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Sat, 20 Sep 2025 23:15:33 +0200 Subject: [PATCH] aerc: Add flag formatting --- office/.config/aerc/aerc.conf | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/office/.config/aerc/aerc.conf b/office/.config/aerc/aerc.conf index 60361ce..96cd2ae 100644 --- a/office/.config/aerc/aerc.conf +++ b/office/.config/aerc/aerc.conf @@ -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