From e46e3d4227ac84fc32d1e70b96de940a05d26bbd Mon Sep 17 00:00:00 2001 From: inwit Date: Thu, 13 Oct 2022 10:24:01 +0200 Subject: [PATCH] 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 Acked-by: Tim Culverhouse --- commands/msg/modify-labels.go | 2 +- doc/aerc.1.scd | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/msg/modify-labels.go b/commands/msg/modify-labels.go index d0a5d6f..02eed52 100644 --- a/commands/msg/modify-labels.go +++ b/commands/msg/modify-labels.go @@ -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 { diff --git a/doc/aerc.1.scd b/doc/aerc.1.scd index 5898f21..3b771ea 100644 --- a/doc/aerc.1.scd +++ b/doc/aerc.1.scd @@ -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.