aboutsummaryrefslogtreecommitdiff
path: root/notmuch.c
diff options
context:
space:
mode:
authorJan Janak <jan@ryngle.com>2009-11-23 01:10:55 +0100
committerCarl Worth <cworth@cworth.org>2009-11-26 07:02:48 -0800
commitf8baa023353e8d45a1a2bb90ab12d4ad38765ad9 (patch)
tree6af2d0512c01d022eeb437120fb683b32ad24277 /notmuch.c
parentc3c52e464b8b0e024a01feacfeb34cc4ce1f3d62 (diff)
notmuch: New command 'search-tags'.
This is a new notmuch command that can be used to search for all tags found in the database. The resulting list is alphabetically sorted. The primary use-case for this new command is to provide the tag completion feature in Emacs (and other interfaces). Signed-off-by: Jan Janak <jan@ryngle.com>
Diffstat (limited to 'notmuch.c')
-rw-r--r--notmuch.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/notmuch.c b/notmuch.c
index f45b692..c57bb5c 100644
--- a/notmuch.c
+++ b/notmuch.c
@@ -254,6 +254,12 @@ command_t commands[] = {
"\t\tSo if you've previously been using sup for mail, then the\n"
"\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." },
{ "help", notmuch_help_command,
"[<command>]",
"\t\tThis message, or more detailed help for the named command.",