From 454606a9cd85923cc98e4d43ea8b8972de6a5e9c Mon Sep 17 00:00:00 2001 From: Koni Marti Date: Mon, 21 Feb 2022 00:18:42 +0100 Subject: 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 --- config/aerc.conf | 6 ++++++ config/config.go | 1 + 2 files changed, 7 insertions(+) (limited to 'config') 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"` -- cgit v1.2.3