* [PATCH] Add count command to manual page
@ 2010-03-18 20:43 Sandra Snan
2010-04-13 15:38 ` Carl Worth
0 siblings, 1 reply; 2+ messages in thread
From: Sandra Snan @ 2010-03-18 20:43 UTC (permalink / raw)
To: notmuch
Just found out that I’ve been piping things through wc for no reason.
Heh. Here’s a quick patch, if you want to add this to the manual page.
Signed-off-by: Sandra Snan <sandra.snan@handgranat.org>
---
notmuch.1 | 18 +++++++++++++++++-
1 files changed, 17 insertions(+), 1 deletions(-)
diff --git a/notmuch.1 b/notmuch.1
index e573749..4d300c0 100644
--- a/notmuch.1
+++ b/notmuch.1
@@ -126,7 +126,7 @@ syntax. See the
section below for more details on the supported syntax.
The
-.BR search " and "show
+.BR "search" ", " "show" " and " "count"
commands are used to query the email database.
.RS 4
.TP 4
@@ -239,6 +239,22 @@ See the
.B "SEARCH SYNTAX"
section below for details of the supported syntax for <search-terms>.
.RE
+.TP
+.BR count " <search-term>..."
+
+Count messages matching the search terms.
+
+The number of matching messages is output to stdout.
+
+A common use of
+.B notmuch count
+is to display the count of messages matching both a specific tag and
+either inbox or unread
+
+See the
+.B "SEARCH SYNTAX"
+section below for details of the supported syntax for <search-terms>.
+.RE
.RE
The
--
1.7.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Add count command to manual page
2010-03-18 20:43 [PATCH] Add count command to manual page Sandra Snan
@ 2010-04-13 15:38 ` Carl Worth
0 siblings, 0 replies; 2+ messages in thread
From: Carl Worth @ 2010-04-13 15:38 UTC (permalink / raw)
To: Sandra Snan, notmuch
[-- Attachment #1: Type: text/plain, Size: 633 bytes --]
On Thu, 18 Mar 2010 21:43:57 +0100, Sandra Snan <sandra.snan@handgranat.org> wrote:
> Just found out that I’ve been piping things through wc for no reason.
> Heh. Here’s a quick patch, if you want to add this to the manual page.
Yikes! I'm sorry that we had such a big omission in our manual
page. And thanks for sending the patch.
I'm sorry that I was so behind on the mailing-list backlog that I didn't
notice this and apply it right away. Instead, during some recent updates
to the manual page, I noticed that this was missing and already added
it.
But please keep suggestions for improvement coming!
-Carl
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-04-13 15:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-18 20:43 [PATCH] Add count command to manual page Sandra Snan
2010-04-13 15:38 ` Carl Worth
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).