aboutsummaryrefslogtreecommitdiffstats
path: root/app/status.go
diff options
context:
space:
mode:
authorJason Cox <me@jasoncarloscox.com>2024-02-15 23:36:16 -0500
committerRobin Jarry <robin@jarry.cc>2024-02-19 20:37:37 +0100
commit5781f1e6b49025e2909c4b87912d6c9dd7256286 (patch)
tree26ac8a06eadf8544999b6f3e43acaf011a3a3388 /app/status.go
parentcae12591142b38b708bb75e1c879dd9689bf6c12 (diff)
downloadaerc-5781f1e6b49025e2909c4b87912d6c9dd7256286.tar.gz
status: make message counts available in templates
Make .Recent, .Unread, .Exists, and .RUE work in statusline templates. Changelog-added: Message counts are available in statusline templates. Signed-off-by: Jason Cox <me@jasoncarloscox.com> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'app/status.go')
-rw-r--r--app/status.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/status.go b/app/status.go
index f1400136..a0cf5e6f 100644
--- a/app/status.go
+++ b/app/status.go
@@ -55,6 +55,7 @@ func (status *StatusLine) Draw(ctx *ui.Context) {
data.SetFolder(status.acct.Directories().SelectedDirectory())
msg, _ := status.acct.SelectedMessage()
data.SetInfo(msg, 0, false)
+ data.SetRUE(status.acct.dirlist.List(), status.acct.dirlist.GetRUECount)
table := ui.NewTable(
ctx.Height(),
config.Statusline.StatusColumns,