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>
This commit is contained in:
Koni Marti 2022-02-21 00:18:42 +01:00 committed by Robin Jarry
commit 454606a9cd
6 changed files with 517 additions and 3 deletions

View file

@ -185,6 +185,12 @@ These options are configured in the *[ui]* section of aerc.conf.
Default: 200ms
*dirlist-tree*
Display the directory list as a foldable tree that allows to collapse
and expand the folders.
Default: false
*next-message-on-delete*
Moves to next message when the current message is deleted