aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/dirlist.go
diff options
context:
space:
mode:
authorGregory Mullen <greg@cmdline.org>2019-07-03 09:54:10 -0700
committerDrew DeVault <sir@cmpwn.com>2019-07-04 11:28:04 -0400
commitf9d26eef58ce2b9fa1e2443032c17c2ccc6afa36 (patch)
tree86ca1765c913f9c3285755a1ea3874110dd8da04 /widgets/dirlist.go
parent8d9d94f0ee63216b50674d0857ef1f2c744737d5 (diff)
downloadaerc-f9d26eef58ce2b9fa1e2443032c17c2ccc6afa36.tar.gz
Add IMAP folder tab completion
Credit for this fix goes to Reto; I guess if we're not gonna be mutt we should probabaly do things correctly.
Diffstat (limited to 'widgets/dirlist.go')
-rw-r--r--widgets/dirlist.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/widgets/dirlist.go b/widgets/dirlist.go
index 944b72eb..1cbc055f 100644
--- a/widgets/dirlist.go
+++ b/widgets/dirlist.go
@@ -43,10 +43,14 @@ func NewDirectoryList(acctConf *config.AccountConfig, uiConf *config.UIConfig,
return dirlist
}
-func (dirlist *DirectoryList) List() []string {
+func (dirlist *DirectoryList) FilteredList() []string {
return dirlist.dirs
}
+func (dirlist *DirectoryList) List() []string {
+ return dirlist.store.List()
+}
+
func (dirlist *DirectoryList) UpdateList(done func(dirs []string)) {
var dirs []string
dirlist.worker.PostAction(