aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorKoni Marti <koni.marti@gmail.com>2022-11-02 22:26:49 +0100
committerRobin Jarry <robin@jarry.cc>2022-11-06 23:16:39 +0100
commitdf0e7f7f9e484e2a41162cdf0e0b8725007e3b72 (patch)
tree5d76e4a6ba6d2cc3f6fc936511ada328052d97ee /config
parent33ceb56680ba92406137ace7eee8139824446308 (diff)
downloadaerc-df0e7f7f9e484e2a41162cdf0e0b8725007e3b72.tar.gz
threadbuilder: sort siblings by sort criteria
Sort the client-side thread siblings according to the sort criteria. Activate this option by setting "sort-thread-siblings" to true in the ui section of aerc.conf. "sort-thread-siblings" is false by default and the siblings will be sorted based on their uid number. Note that this options will only work with client-side threading and when the backend supports sorting. Also, it comes with a slight performance penalty. Signed-off-by: Koni Marti <koni.marti@gmail.com> Acked-by: Tim Culverhouse <tim@timculverhouse.com>
Diffstat (limited to 'config')
-rw-r--r--config/aerc.conf9
-rw-r--r--config/config.go1
2 files changed, 10 insertions, 0 deletions
diff --git a/config/aerc.conf b/config/aerc.conf
index 688f2ca1..d024b4fd 100644
--- a/config/aerc.conf
+++ b/config/aerc.conf
@@ -208,6 +208,15 @@ completion-popovers=true
# Default: false
#reverse-thread-order=false
+# Sort the thread siblings according to the sort criteria for the messages. If
+# sort-thread-siblings is false, the thread siblings will be sorted based on
+# the message UID in ascending order. This option is only applicable for
+# client-side threading with a backend that enables sorting. Note that there's
+# a performance impact when sorting is activated.
+#
+# Default: false
+#sort-thread-siblings=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 5e5b49bc..2da4559f 100644
--- a/config/config.go
+++ b/config/config.go
@@ -82,6 +82,7 @@ type UIConfig struct {
ReverseOrder bool `ini:"reverse-msglist-order"`
ReverseThreadOrder bool `ini:"reverse-thread-order"`
+ SortThreadSiblings bool `ini:"sort-thread-siblings"`
}
type ContextType int