From df0e7f7f9e484e2a41162cdf0e0b8725007e3b72 Mon Sep 17 00:00:00 2001 From: Koni Marti Date: Wed, 2 Nov 2022 22:26:49 +0100 Subject: 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 Acked-by: Tim Culverhouse --- widgets/account.go | 1 + 1 file changed, 1 insertion(+) (limited to 'widgets') diff --git a/widgets/account.go b/widgets/account.go index 9761c492..cdb43cbf 100644 --- a/widgets/account.go +++ b/widgets/account.go @@ -287,6 +287,7 @@ func (acct *AccountView) onMessage(msg types.WorkerMessage) { acct.dirlist.UiConfig(name).ClientThreadsDelay, acct.dirlist.UiConfig(name).ReverseOrder, acct.dirlist.UiConfig(name).ReverseThreadOrder, + acct.dirlist.UiConfig(name).SortThreadSiblings, func(msg *models.MessageInfo) { acct.conf.Triggers.ExecNewEmail(acct.acct, acct.conf, msg) -- cgit