From 42b4302ba32e503c0a8011baae0ca433c8592dd7 Mon Sep 17 00:00:00 2001 From: Robin Jarry Date: Tue, 26 Oct 2021 17:24:45 +0200 Subject: index: allow dynamic formatting of message dates When a message has been sent today (or this year) allow formatting the date differently. For example, with: [ui] index-format=%-25.25n %-25.25D %s timestamp-format=2006 Jan 02, 15:04 GMT-0700 this-day-time-format=Today at 15:04 this-year-time-format=Jan 02 The message list would look like this (spaces collapsed): Robin Jarry Today at 16:30 [PATCH 1/2] bindings: prepare for more modifers bugzilla@dpdk.org Oct 26 [dpdk-dev] [Bug 839] pdump: any subsequent runs of pdump_autotest fail Holger Levsen 2020 Mar 15, 13:44 GMT+01 +1 (Re: FTP Team -- call for volunteers) Signed-off-by: Robin Jarry --- doc/aerc-config.5.scd | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'doc') diff --git a/doc/aerc-config.5.scd b/doc/aerc-config.5.scd index 46c4416..d781164 100644 --- a/doc/aerc-config.5.scd +++ b/doc/aerc-config.5.scd @@ -87,6 +87,18 @@ These options are configured in the *[ui]* section of aerc.conf. Default: 2006-01-02 03:04 PM (ISO 8601 + 12 hour time) +*today-time-format* + Index-only time format for messages that were received/sent today. + If this is not specified, *timestamp-format* is used instead. + + Default: "" + +*this-year-time-format* + Index-only time format for messages that were received/sent this year. + If this is not specified, *timestamp-format* is used instead. + + Default: "" + *sidebar-width* Width of the sidebar, including the border. Set to zero to disable the sidebar. -- cgit 1.4.1-2-gfad0