diff options
author | Michele Finotto <m@finotto.org> | 2019-12-03 20:20:21 +0100 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-12-09 12:42:40 -0500 |
commit | dfe58842b967e2951604b631b89dfd61117745ec (patch) | |
tree | a88fc85be9611de781ee4a1aa411c9254d2d167d /config/config.go | |
parent | 2559ebfac56a8060c8af001ba61709f3c4d78d04 (diff) | |
download | aerc-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/config.go')
-rw-r--r-- | config/config.go | 1 |
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 { |