aboutsummaryrefslogtreecommitdiffstats
path: root/commands/msg/archive.go
diff options
context:
space:
mode:
authorReto Brunner <reto@labrat.space>2020-04-11 04:12:38 +0200
committerDrew DeVault <sir@cmpwn.com>2020-04-11 10:46:46 -0400
commit1fbce012ed85f385be4add710c2de5bb09c81998 (patch)
treee5a8f8a9d0795d8c9764104a05c4bac8c78f353b /commands/msg/archive.go
parent2b53347d0de8ca3b2bfdf539539dac01f7424678 (diff)
downloadaerc-1fbce012ed85f385be4add710c2de5bb09c81998.tar.gz
msg/archive: complete the possible options
Diffstat (limited to 'commands/msg/archive.go')
-rw-r--r--commands/msg/archive.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/commands/msg/archive.go b/commands/msg/archive.go
index 966d5986..783ab049 100644
--- a/commands/msg/archive.go
+++ b/commands/msg/archive.go
@@ -32,7 +32,8 @@ func (Archive) Aliases() []string {
}
func (Archive) Complete(aerc *widgets.Aerc, args []string) []string {
- return nil
+ valid := []string{"flat", "year", "month"}
+ return commands.CompletionFromList(valid, args)
}
func (Archive) Execute(aerc *widgets.Aerc, args []string) error {