aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorKoni Marti <koni.marti@gmail.com>2022-10-20 16:43:44 +0200
committerRobin Jarry <robin@jarry.cc>2022-10-27 22:44:39 +0200
commit006e10357b0e89ba3a8216ff5a6435c5d8f77187 (patch)
tree62cd69a39c68948e0e36e03a7106fc80ccc35b6e /config
parent88afe7bb4a7425fbce767a64ed454151514fa4f2 (diff)
downloadaerc-006e10357b0e89ba3a8216ff5a6435c5d8f77187.tar.gz
threads: reverse thread ordering
Add reverse-thread-order option to the ui config to enable reverse display of the mesage threads. Default order is the the intial message is on the top with all the replies being displayed below. The reverse options will put the initial message at the bottom with the replies on top. Signed-off-by: Koni Marti <koni.marti@gmail.com> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'config')
-rw-r--r--config/aerc.conf8
-rw-r--r--config/config.go3
2 files changed, 10 insertions, 1 deletions
diff --git a/config/aerc.conf b/config/aerc.conf
index 1650cf1d..e290525c 100644
--- a/config/aerc.conf
+++ b/config/aerc.conf
@@ -194,6 +194,14 @@ completion-popovers=true
# Default: false
#reverse-msglist-order = false
+# Reverse display of the mesage threads. Default order is the the intial
+# message is on the top with all the replies being displayed below. The
+# reverse option will put the initial message at the bottom with the
+# replies on top.
+#
+# Default: false
+#reverse-thread-order=false
+
#[ui:account=foo]
#
# Enable a threaded view of messages. If this is not supported by the backend
diff --git a/config/config.go b/config/config.go
index 8eb40070..a15e1d51 100644
--- a/config/config.go
+++ b/config/config.go
@@ -79,7 +79,8 @@ type UIConfig struct {
BorderCharVertical rune `ini:"-"`
BorderCharHorizontal rune `ini:"-"`
- ReverseOrder bool `ini:"reverse-msglist-order"`
+ ReverseOrder bool `ini:"reverse-msglist-order"`
+ ReverseThreadOrder bool `ini:"reverse-thread-order"`
}
type ContextType int