From aae29324fdf558c8ee878ddefdd278758b67f479 Mon Sep 17 00:00:00 2001 From: Robin Jarry Date: Sun, 4 Sep 2022 21:18:21 +0200 Subject: [PATCH] config: fix default time format values Adjust default values in config.go to follow what is set in the default aerc.conf file. Signed-off-by: Robin Jarry Acked-by: Tim Culverhouse --- config/aerc.conf | 2 +- config/config.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/config/aerc.conf b/config/aerc.conf index c60f4b0..6208f5d 100644 --- a/config/aerc.conf +++ b/config/aerc.conf @@ -22,7 +22,7 @@ unsafe-accounts-conf=false # Describes the format for each row in a mailbox view. This field is compatible # with mutt's printf-like syntax. # -# Default: %D %-17.17n %Z %s +# Default: %-20.20D %-17.17n %Z %s index-format=%-20.20D %-17.17n %Z %s # diff --git a/config/config.go b/config/config.go index f69dd39..ead5456 100644 --- a/config/config.go +++ b/config/config.go @@ -723,11 +723,11 @@ func LoadConfigFromFile(root *string, accts []string) (*AercConfig, error) { }, Ui: UIConfig{ - IndexFormat: "%D %-17.17n %s", + IndexFormat: "%-20.20D %-17.17n %Z %s", TimestampFormat: "2006-01-02 03:04 PM", - ThisDayTimeFormat: "", - ThisWeekTimeFormat: "", - ThisYearTimeFormat: "", + ThisDayTimeFormat: "03:04 PM", + ThisWeekTimeFormat: "Monday 03:04 PM", + ThisYearTimeFormat: "January 02", ShowHeaders: []string{ "From", "To", "Cc", "Bcc", "Subject", "Date", },