Add completion for copy

This commit is contained in:
Jeffas 2019-09-12 12:01:16 +01:00 committed by Drew DeVault
parent ecc26b53c9
commit ad0d6319dd
1 changed files with 2 additions and 1 deletions

View File

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