From f8baa023353e8d45a1a2bb90ab12d4ad38765ad9 Mon Sep 17 00:00:00 2001 From: Jan Janak Date: Mon, 23 Nov 2009 01:10:55 +0100 Subject: 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 --- notmuch.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'notmuch.c') 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, "[]", "\t\tThis message, or more detailed help for the named command.", -- cgit v1.2.3