From d8c2d63ee9b37e78d0e06ec71b2227b83ee52aa5 Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Sun, 16 Apr 2023 09:53:46 -0500 Subject: directory: add role to template fields Add .Role as a template field for use in distinguishing between mailboxes with a given IANA role, or custom role defined by aerc ("query" for notmuch queries, for example). Signed-off-by: Tim Culverhouse Acked-by: Robin Jarry --- widgets/dirlist.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'widgets/dirlist.go') diff --git a/widgets/dirlist.go b/widgets/dirlist.go index ee2acb1b..da2fa69a 100644 --- a/widgets/dirlist.go +++ b/widgets/dirlist.go @@ -247,7 +247,7 @@ func (dirlist *DirectoryList) Draw(ctx *ui.Context) { break } - data.SetFolder(name) + data.SetFolder(dirlist.Directory(name)) data.SetRUE([]string{name}, dirlist.GetRUECount) left, right, style := dirlist.renderDir( name, uiConfig, &data, -- cgit