diff options
author | Carl Worth <cworth@cworth.org> | 2011-05-24 12:09:53 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2011-05-24 12:19:18 -0700 |
commit | 4f926e140fea9902a8b43372106e81321a2bf0ae (patch) | |
tree | fd875b52cae90224b26437aff05ef2d23ba5ec84 /notmuch.c | |
parent | e267f9a46731e796f7064c7483de9942caba3c2a (diff) |
notmuch: Implement search-tags as an alias for "search --output=tags *"
Ever since we added support for "notmuch search --output=tags" the
"notmuch search-tags" command has been redundant. The recent addition
of alias support makes it easy to drop the explicit search-tags
command in favor of a simple alias that runs "notmuch search
--output=tags *".
So there's no longer any documentation of the search-tags command, but
existing scripts will not break at all.
Diffstat (limited to 'notmuch.c')
-rw-r--r-- | notmuch.c | 14 |
1 files changed, 3 insertions, 11 deletions
@@ -32,7 +32,7 @@ typedef struct command { const char *documentation; } command_t; -#define MAX_ALIAS_SUBSTITUTIONS 2 +#define MAX_ALIAS_SUBSTITUTIONS 3 typedef struct alias { const char *name; @@ -40,7 +40,8 @@ typedef struct alias { } alias_t; alias_t aliases[] = { - { "part", { "show", "--format=raw"}} + { "part", { "show", "--format=raw"}}, + { "search-tags", {"search", "--output=tags", "*"}} }; static int @@ -374,15 +375,6 @@ static command_t commands[] = { "\tSo if you've previously been using sup for mail, then the\n" "\t\"notmuch restore\" command provides you a way to import\n" "\tall of your tags (or labels as sup calls them)." }, - { "search-tags", notmuch_search_tags_command, - "[<search-terms> [...] ]", - "List all tags found in the database or matching messages.", - "\tRun this command without any search-term(s) to obtain a list\n" - "\tof all tags found in the database. If you provide one or more\n" - "\tsearch-terms as argument(s) then the resulting list will\n" - "\tcontain tags only from messages that match the search-term(s).\n" - "\n" - "\tIn both cases the list will be alphabetically sorted." }, { "config", notmuch_config_command, "[get|set] <section>.<item> [value ...]", "Get or set settings in the notmuch configuration file.", |