2 Commits

Author SHA1 Message Date
Robin Jarry
26033eaecf 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 <robin@jarry.cc>
Tested-by: Bojan Gabric <bojan@bojangabric.com>
Tested-by: Jason Cox <me@jasoncarloscox.com>
Acked-by: Tim Culverhouse <tim@timculverhouse.com>
2024-10-23 10:22:51 +02:00
Bence Ferdinandy
71dc0c0128 commands: add an echo command
Currently if you want to explore what templates resolve to, it's a bit
of pain. Add an echo command that doesn't do anything, other than prints
the string that is its argument with the templates resolved.

Implements: https://todo.sr.ht/~rjarry/aerc/277
Changelog-added: New `:echo` command that prints its arguments with
 templates resolved.
Signed-off-by: Bence Ferdinandy <bence@ferdinandy.com>
Reviewed-by: Tristan Partin <tristan@partin.io>
Acked-by: Robin Jarry <robin@jarry.cc>
2024-09-20 09:22:59 +02:00