From 84146e23b384e42c63287e3519e70b0a6ea3100f Mon Sep 17 00:00:00 2001 From: Robin Jarry Date: Sat, 6 Nov 2021 17:32:38 +0100 Subject: index: add this-week-time-format Also allow specific time format for messages received within the last 7 days. Signed-off-by: Robin Jarry --- widgets/msglist.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'widgets/msglist.go') diff --git a/widgets/msglist.go b/widgets/msglist.go index 79f05080..324e14d8 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(), -- cgit