diff options
author | Yash Srivastav <yash111998@gmail.com> | 2019-06-08 01:05:23 +0530 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-06-07 16:22:01 -0400 |
commit | fca7321639f77bbf825dc897156d7a21993a2c69 (patch) | |
tree | 5e503bf4ebd9672eef2af5cbad49b5b73405e548 /config | |
parent | 6d491569c0f95bec03cc837446c2836acabe99ae (diff) | |
download | aerc-fca7321639f77bbf825dc897156d7a21993a2c69.tar.gz |
Message list: implement index-format option
Diffstat (limited to 'config')
-rw-r--r-- | config/aerc.conf.in | 8 | ||||
-rw-r--r-- | config/config.go | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/config/aerc.conf.in b/config/aerc.conf.in index 1a4a826c..de1c3ec0 100644 --- a/config/aerc.conf.in +++ b/config/aerc.conf.in @@ -7,13 +7,13 @@ # with mutt's printf-like syntax. TODO: document properly # # Default: -index-format=%4C %Z %D %-17.17n %s +index-format=%D %-17.17n %s # -# See strftime(3) +# See time.Time#Format at https://godoc.org/time#Time.Format # -# Default: %F %l:%M %p (ISO 8501 + 12 hour time) -timestamp-format=%F %l:%M %p +# Default: 2006-01-02 03:04 PM (ISO 8601 + 12 hour time) +timestamp-format=2006-01-02 03:04 PM # # Width of the sidebar, including the border. diff --git a/config/config.go b/config/config.go index 3b7edbbf..3ef587b0 100644 --- a/config/config.go +++ b/config/config.go @@ -246,8 +246,8 @@ func LoadConfig(root *string, sharedir string) (*AercConfig, error) { Ini: file, Ui: UIConfig{ - IndexFormat: "%4C %Z %D %-17.17n %s", - TimestampFormat: "%F %l:%M %p", + IndexFormat: "%D %-17.17n %s", + TimestampFormat: "2006-01-02 03:04 PM", ShowHeaders: []string{ "From", "To", "Cc", "Bcc", "Subject", "Date", }, |