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>
This commit is contained in:
parent
02e7d8aca8
commit
84146e23b3
6 changed files with 36 additions and 8 deletions
widgets
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue