aboutsummaryrefslogtreecommitdiff
path: root/notmuch.c
diff options
context:
space:
mode:
authorJan Janak <jan@ryngle.com>2009-11-25 04:30:22 +0100
committerCarl Worth <cworth@cworth.org>2009-11-26 07:06:41 -0800
commit5a447b00ac3a3c0c23a28d281c330590320af099 (patch)
treee066a156458d13670ca77e324067552c8d1056c9 /notmuch.c
parent523a6f67ecc94efd37dcdf570d66edc62497a8fb (diff)
search-tags: Add support for search-terms.
This patch adds support for search-terms to 'notmuch search-tags'. If no search-term is provided then the command returns a list of all tags from the database. If the user provides one or more search-terms as arguments then the command collects tags from matching messages only. This could be used by functions in the Emacs mode to further limit the list of tags offered for completion. For example, functions that remove tags from message(s) could offer only tags present in the message(s). Signed-off-by: Jan Janak <jan@ryngle.com>
Diffstat (limited to 'notmuch.c')
-rw-r--r--notmuch.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/notmuch.c b/notmuch.c
index c57bb5c..5b0284c 100644
--- a/notmuch.c
+++ b/notmuch.c
@@ -255,11 +255,14 @@ command_t commands[] = {
"\t\t\"notmuch restore\" command provides you a way to import\n"
"\t\tall of your tags (or labels as sup calls them)." },
{ "search-tags", notmuch_search_tags_command,
- NULL,
- "List all tags found in the database.",
- "\t\tThis command returns an alphabetically sorted list of all tags\n"
- "\t\tthat are present in the database. In other words, the resulting\n"
- "\t\tlist is a collection of all tags from all messages." },
+ "[<search-terms> [...] ]",
+ "\t\tList all tags found in the database or matching messages.",
+ "\t\tRun this command without any search-term(s) to obtain a list\n"
+ "\t\tof all tags found in the database. If you provide one or more\n"
+ "\t\tsearch-terms as argument(s) then the resulting list will\n"
+ "\t\tcontain tags only from messages that match the search-term(s).\n"
+ "\n"
+ "\t\tIn both cases the list will be alphabetically sorted." },
{ "help", notmuch_help_command,
"[<command>]",
"\t\tThis message, or more detailed help for the named command.",