From 402612fd9788f071a5d7ae0045989977b98d896f Mon Sep 17 00:00:00 2001 From: Kalyan Sriram Date: Sat, 13 Nov 2021 08:10:09 +0000 Subject: notmuch: allow sort by file order When using the notmuch backend, it often makes more sense to sort folders (actual virtual folders, or queries) by the order specified in the query-map file, rather than alphabetically. This patch introduces a configuration option (disabled by default) that allows this. Additionally, due to the notmuch backend previously using maps (which are order-undefined) to store the list of queries, default query selection on aerc startup fluctuated. This patch fixes that by using slices to store query order. --- doc/aerc-config.5.scd | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'doc/aerc-config.5.scd') diff --git a/doc/aerc-config.5.scd b/doc/aerc-config.5.scd index fbfa64e5..c647459a 100644 --- a/doc/aerc-config.5.scd +++ b/doc/aerc-config.5.scd @@ -427,6 +427,12 @@ Note that many of these configuration options are written for you, such as Default: no folders +*enable-folders-sort* + If true, folders are sorted, first by specified folders (see *folders-sort*), + then alphabetically. + + Default: true + *folders-sort* Specifies a comma separated list of folders to be shown at the top of the list in the provided order. Remaining folders will be sorted alphabetically. -- cgit