diff options
author | Robin Jarry <robin@jarry.cc> | 2024-10-12 00:21:46 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2024-10-23 10:22:51 +0200 |
commit | d0484b153aa5fa80c415f4025aef493eba167e12 (patch) | |
tree | 663b4d52d6f7e070477963346e3e3699eca8c384 /commands/msg/mark.go | |
parent | 26033eaecfe6733b2f911dea283433df11773256 (diff) | |
download | aerc-d0484b153aa5fa80c415f4025aef493eba167e12.tar.gz |
completion: add command option descriptions
Add `desc:""` struct field tags in all command arguments where it makes
sense.
The description values will be returned along with 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>
Diffstat (limited to 'commands/msg/mark.go')
-rw-r--r-- | commands/msg/mark.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/commands/msg/mark.go b/commands/msg/mark.go index 6c36dcd7..21ba2fc1 100644 --- a/commands/msg/mark.go +++ b/commands/msg/mark.go @@ -8,11 +8,11 @@ import ( ) type Mark struct { - All bool `opt:"-a" aliases:"mark,unmark"` - Toggle bool `opt:"-t" aliases:"mark,unmark"` - Visual bool `opt:"-v" aliases:"mark,unmark"` - VisualClear bool `opt:"-V" aliases:"mark,unmark"` - Thread bool `opt:"-T" aliases:"mark,unmark"` + All bool `opt:"-a" aliases:"mark,unmark" desc:"Mark all messages in current folder."` + Toggle bool `opt:"-t" aliases:"mark,unmark" desc:"Toggle the marked state."` + Visual bool `opt:"-v" aliases:"mark,unmark" desc:"Enter / leave visual mark mode."` + VisualClear bool `opt:"-V" aliases:"mark,unmark" desc:"Same as -v but does not clear existing selection."` + Thread bool `opt:"-T" aliases:"mark,unmark" desc:"Mark all messages from the selected thread."` } func init() { |