diff options
author | Koni Marti <koni.marti@gmail.com> | 2023-11-18 02:04:01 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-11-23 00:14:54 +0100 |
commit | 30d28d0542997ad55a59439775929c63b2de8616 (patch) | |
tree | 20d52e73e1b97d76b9bde126c9dfc8a02e46d554 /models | |
parent | 85d0936df6861c41a1dddd91a2f3b97afd8e127a (diff) | |
download | aerc-30d28d0542997ad55a59439775929c63b2de8616.tar.gz |
dirtree: add custom virtual directory role
Add a new directory role to indicate virtual nodes in the directory
tree. This allows to style the virtual nodes differently and apply
different behaviors in some commands (i.e. rmdir).
Signed-off-by: Koni Marti <koni.marti@gmail.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'models')
-rw-r--r-- | models/models.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/models/models.go b/models/models.go index 1b864341..42e60b8b 100644 --- a/models/models.go +++ b/models/models.go @@ -59,6 +59,8 @@ const ( TrashRole Role = "trash" // Custom aerc roles QueryRole Role = "query" + // virtual node created by the directory tree + VirtualRole Role = "virtual" ) type Directory struct { |