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.
This commit is contained in:
Gregory Mullen 2019-07-03 09:54:10 -07:00 committed by Drew DeVault
commit f9d26eef58
4 changed files with 32 additions and 3 deletions
widgets

View file

@ -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(