notmuch: add "tag" alias for modify-labels command

In order to make things easier for newcomers from notmuch, add a tag command
which is just an alias for modify-labels.

Signed-off-by: inwit <inwit@sindominio.net>
Acked-by: Tim Culverhouse <tim@timculverhouse.com>
This commit is contained in:
inwit 2022-10-13 10:24:01 +02:00 committed by Robin Jarry
parent 00daa226f4
commit e46e3d4227
2 changed files with 2 additions and 1 deletions

View file

@ -16,7 +16,7 @@ func init() {
}
func (ModifyLabels) Aliases() []string {
return []string{"modify-labels"}
return []string{"modify-labels", "tag"}
}
func (ModifyLabels) Complete(aerc *widgets.Aerc, args []string) []string {

View file

@ -242,6 +242,7 @@ message list, the message in the message viewer, etc).
Operates exactly like *flag*, defaulting to unsetting (disabling) flags.
*modify-labels* <[+-]label>...
*tag* <[+-]label>...
Modify message labels (e.g. notmuch tags). Labels prefixed with a '+' are
added, those prefixed with a '-' removed. As a convenience, labels without
either operand add the specified label.