about summary refs log tree commit diff stats
path: root/widgets
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2021-11-06 17:32:38 +0100
committerRobin Jarry <robin@jarry.cc>2021-11-06 17:34:20 +0100
commit84146e23b384e42c63287e3519e70b0a6ea3100f (patch)
tree4b7994c45404e0dfcf85c5c9dfc1284fcc0eb6e0 /widgets
parent02e7d8aca88d433062e00fa2988e533944a563f4 (diff)
downloadaerc-84146e23b384e42c63287e3519e70b0a6ea3100f.tar.gz
index: add this-week-time-format
Also allow specific time format for messages received within the last
7 days.

Signed-off-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'widgets')
-rw-r--r--widgets/msglist.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/widgets/msglist.go b/widgets/msglist.go
index 79f0508..324e14d 100644
--- a/widgets/msglist.go
+++ b/widgets/msglist.go
@@ -155,7 +155,9 @@ func (ml *MessageList) Draw(ctx *ui.Context) {
 		ctx.Fill(0, row, ctx.Width(), 1, ' ', style)
 		fmtStr, args, err := format.ParseMessageFormat(
 			uiConfig.IndexFormat, uiConfig.TimestampFormat,
-			uiConfig.ThisDayTimeFormat, uiConfig.ThisYearTimeFormat,
+			uiConfig.ThisDayTimeFormat,
+			uiConfig.ThisWeekTimeFormat,
+			uiConfig.ThisYearTimeFormat,
 			format.Ctx{
 				FromAddress: ml.aerc.SelectedAccount().acct.From,
 				AccountName: ml.aerc.SelectedAccount().Name(),