mirror of
https://git.sr.ht/~rjarry/aerc
synced 2026-03-14 11:46:21 +01:00
Add a new :toggle-folder command that toggles the expand/collapse state of a folder in the directory tree view. This provides a convenient single command alternative to using :expand-folder and :collapse-folder separately. The toggle behavior is consistent with existing commands: - For folders with children: toggles the folder's own hidden state - For leaf nodes: toggles the parent folder (same as collapse) - For root nodes without children: no-op (nothing to toggle) Also add comprehensive unit tests for collapse, expand, and toggle folder operations covering top-level, nested, and deeply nested folders. Changelog-added: `:toggle-folder` command to toggle directory tree expand/collapse state. Signed-off-by: Arjuna Del Toso <arjuna@deltoso.net> Tested-by: Inwit <inwit@sindominio.net> Acked-by: Robin Jarry <robin@jarry.cc> |
||
|---|---|---|
| .. | ||
| align.go | ||
| cf.go | ||
| check-mail.go | ||
| clear.go | ||
| compose.go | ||
| connection.go | ||
| expand-folder.go | ||
| export-mbox.go | ||
| import-mbox.go | ||
| mkdir.go | ||
| next-folder.go | ||
| next-result.go | ||
| next.go | ||
| query.go | ||
| recover.go | ||
| rmdir.go | ||
| search.go | ||
| select.go | ||
| sort.go | ||
| split.go | ||
| toggle-sidebar.go | ||
| view.go | ||