diff options
author | Robin Jarry <robin@jarry.cc> | 2022-09-04 21:18:21 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-09-08 19:52:04 +0200 |
commit | aae29324fdf558c8ee878ddefdd278758b67f479 (patch) | |
tree | 0cfdd560ec0589499a3f3d4895ed633f18c6140e | |
parent | aa52b295b2ca38e369ffaa2cc4447a270231ecb3 (diff) | |
download | aerc-aae29324fdf558c8ee878ddefdd278758b67f479.tar.gz |
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 <robin@jarry.cc>
Acked-by: Tim Culverhouse <tim@timculverhouse.com>
-rw-r--r-- | config/aerc.conf | 2 | ||||
-rw-r--r-- | config/config.go | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/config/aerc.conf b/config/aerc.conf index c60f4b03..6208f5d8 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 f69dd399..ead54561 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", }, |