From 26033eaecfe6733b2f911dea283433df11773256 Mon Sep 17 00:00:00 2001 From: Robin Jarry Date: Sat, 12 Oct 2024 00:21:45 +0200 Subject: completion: add commands descriptions Update the Command interface to include a Description() method. Implement the method for all commands using short descriptions inspired from the aerc(1) man page. Return the description values along with command names so that they can be displayed in completion choices. Implements: https://todo.sr.ht/~rjarry/aerc/271 Signed-off-by: Robin Jarry Tested-by: Bojan Gabric Tested-by: Jason Cox Acked-by: Tim Culverhouse --- commands/msg/forward.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'commands/msg/forward.go') diff --git a/commands/msg/forward.go b/commands/msg/forward.go index d030636e..3bfad8cf 100644 --- a/commands/msg/forward.go +++ b/commands/msg/forward.go @@ -37,6 +37,10 @@ func init() { commands.Register(forward{}) } +func (forward) Description() string { + return "Open the composer to forward the selected message to another recipient." +} + func (forward) Context() commands.CommandContext { return commands.MESSAGE_LIST | commands.MESSAGE_VIEWER } -- cgit