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
parent 8d9d94f0ee
commit f9d26eef58
4 changed files with 32 additions and 3 deletions
commands/msg

View file

@ -7,6 +7,7 @@ import (
"git.sr.ht/~sircmpwn/getopt"
"github.com/gdamore/tcell"
"git.sr.ht/~sircmpwn/aerc/commands"
"git.sr.ht/~sircmpwn/aerc/widgets"
"git.sr.ht/~sircmpwn/aerc/worker/types"
)
@ -22,7 +23,7 @@ func (_ Move) Aliases() []string {
}
func (_ Move) Complete(aerc *widgets.Aerc, args []string) []string {
return nil
return commands.GetFolders(aerc, args)
}
func (_ Move) Execute(aerc *widgets.Aerc, args []string) error {