]> git.notmuchmail.org Git - notmuch/commitdiff
Add is:<tag> as a synonym for tag:<tag> in search terms.
authorCarl Worth <cworth@cworth.org>
Wed, 10 Mar 2010 00:03:58 +0000 (16:03 -0800)
committerCarl Worth <cworth@cworth.org>
Wed, 10 Mar 2010 00:03:58 +0000 (16:03 -0800)
I like the readability of this, it provides compatibility with people
trained in this syntax by sup, and it even saves one character.

lib/database.cc
notmuch.1
notmuch.c

index 88c85ed49494c1f23eb7737c0f2daef0e109cc17..c91e97c125940b384a3bd24963df6cbeedd88acb 100644 (file)
@@ -147,6 +147,7 @@ prefix_t BOOLEAN_PREFIX_INTERNAL[] = {
 prefix_t BOOLEAN_PREFIX_EXTERNAL[] = {
     { "thread",                        "G" },
     { "tag",                   "K" },
+    { "is",                    "K" },
     { "id",                    "Q" }
 };
 
index 2df320d8657c2cedb22c0fb6502c5a95451a696c..e573749cd5988391c8d537ff3b8e5d90c6bbfde6 100644 (file)
--- a/notmuch.1
+++ b/notmuch.1
@@ -373,7 +373,7 @@ terms to match against specific portions of an email, (where
 
        attachment:<word>
 
-       tag:<tag>
+       tag:<tag> (or is:<tag>)
 
        id:<message-id>
 
@@ -402,7 +402,7 @@ prefix can be used to search for specific filenames (or extensions) of
 attachments to email messages.
 
 For
-.BR tag: ,
+.BR tag: " and " is:
 valid tag values include
 .BR inbox " and " unread
 by default for new messages added by
index dca8d3829f6afe8f9057dbba41d366c942b808ce..95f057eae21b2289df61cc373b354fe0885a07a6 100644 (file)
--- a/notmuch.c
+++ b/notmuch.c
@@ -52,7 +52,7 @@ static const char search_terms_help[] =
     "\t\t\tto:<name-or-address>\n"
     "\t\t\tsubject:<word-or-quoted-phrase>\n"
     "\t\t\tattachment:<word>\n"
-    "\t\t\ttag:<tag>\n"
+    "\t\t\ttag:<tag> (or is:<tag>)\n"
     "\t\t\tid:<message-id>\n"
     "\t\t\tthread:<thread-id>\n"
     "\n"
@@ -66,7 +66,7 @@ static const char search_terms_help[] =
     "\t\tthe subject of an email. Quoted phrases are supported when\n"
     "\t\tsearching with: subject:\"this is a phrase\".\n"
     "\n"
-    "\t\tFor tag:, valid tag values include \"inbox\" and \"unread\"\n"
+    "\t\tFor tag: and is:, valid tag values include \"inbox\" and \"unread\"\n"
     "\t\tby default for new messages added by \"notmuch new\" as well\n"
     "\t\tas any other tag values added manually with \"notmuch tag\".\n"
     "\n"