aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorMichele Finotto <m@finotto.org>2019-12-03 20:20:21 +0100
committerDrew DeVault <sir@cmpwn.com>2019-12-09 12:42:40 -0500
commitdfe58842b967e2951604b631b89dfd61117745ec (patch)
treea88fc85be9611de781ee4a1aa411c9254d2d167d /config
parent2559ebfac56a8060c8af001ba61709f3c4d78d04 (diff)
downloadaerc-dfe58842b967e2951604b631b89dfd61117745ec.tar.gz
Add custom sorting for folders
A new config options for accounts.conf (folders-sort) was added to allow a user to choose which folders should be shown on top. My use case was to avoid stepping into heavy, but rarely viewed folders when cycling through other often accessed ones. To test add this to your account.conf: folders-sort = INBOX,Sent,Archive INBOX, Sent and Archive should then show at the top of your dirlist, and all other folders should come next in alphabetical order.
Diffstat (limited to 'config')
-rw-r--r--config/config.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/config.go b/config/config.go
index 32d07fca..dd1f5f47 100644
--- a/config/config.go
+++ b/config/config.go
@@ -61,6 +61,7 @@ type AccountConfig struct {
OutgoingCredCmd string
SignatureFile string
SignatureCmd string
+ FoldersSort []string `ini:"folders-sort" delim:","`
}
type BindingConfig struct {