summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorKoni Marti <koni.marti@gmail.com>2022-02-21 00:18:42 +0100
committerRobin Jarry <robin@jarry.cc>2022-02-23 21:09:01 +0100
commit454606a9cd85923cc98e4d43ea8b8972de6a5e9c (patch)
treeced698391543007f9ed1b3e752ee40a44a62a197 /config
parent5eac8d603e8807f7d4be58a4a7b03862a8c90df2 (diff)
downloadaerc-454606a9cd85923cc98e4d43ea8b8972de6a5e9c.zip
dirtree: implement foldable tree for directory list
implement a foldable tree for the directory list. Expand all parent directories when a hidden directory is selected with the change-folder command. folders-sort considers the top-level directories only. The folders and foldersexclude filters work with the full directory path. Enable tree view by adding 'dirlist-tree=true' to the config file. Implements: https://todo.sr.ht/~sircmpwn/aerc2/228 Signed-off-by: Koni Marti <koni.marti@gmail.com>
Diffstat (limited to 'config')
-rw-r--r--config/aerc.conf6
-rw-r--r--config/config.go1
2 files changed, 7 insertions, 0 deletions
diff --git a/config/aerc.conf b/config/aerc.conf
index 7a5e423..631a566 100644
--- a/config/aerc.conf
+++ b/config/aerc.conf
@@ -81,6 +81,12 @@ dirlist-format=%n %>r
# Default: 200ms
dirlist-delay=200ms
+# Display the directory list as a foldable tree that allows to collapse and
+# expand the folders.
+#
+# Default: false
+dirlist-tree=false
+
# List of space-separated criteria to sort the messages by, see *sort*
# command in *aerc*(1) for reference. Prefixing a criterion with "-r "
# reverses that criterion.
diff --git a/config/config.go b/config/config.go
index f730fe4..d2512d2 100644
--- a/config/config.go
+++ b/config/config.go
@@ -49,6 +49,7 @@ type UIConfig struct {
SpinnerDelimiter string `ini:"spinner-delimiter"`
DirListFormat string `ini:"dirlist-format"`
DirListDelay time.Duration `ini:"dirlist-delay"`
+ DirListTree bool `ini:"dirlist-tree"`
Sort []string `delim:" "`
NextMessageOnDelete bool `ini:"next-message-on-delete"`
CompletionDelay time.Duration `ini:"completion-delay"`