1 Return-Path: <david@tethera.net>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 2DDF0429E3A
\r
6 for <notmuch@notmuchmail.org>; Mon, 3 Nov 2014 22:52:29 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id QFs5AWnutDkE for <notmuch@notmuchmail.org>;
\r
16 Mon, 3 Nov 2014 22:52:22 -0800 (PST)
\r
17 Received: from yantan.tethera.net (yantan.tethera.net [199.188.72.155])
\r
18 (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))
\r
19 (No client certificate requested)
\r
20 by olra.theworths.org (Postfix) with ESMTPS id 110CD431FC4
\r
21 for <notmuch@notmuchmail.org>; Mon, 3 Nov 2014 22:52:22 -0800 (PST)
\r
22 Received: from remotemail by yantan.tethera.net with local (Exim 4.80)
\r
23 (envelope-from <david@tethera.net>)
\r
24 id 1XlXyX-0001jt-3y; Tue, 04 Nov 2014 02:52:21 -0400
\r
25 Received: (nullmailer pid 26307 invoked by uid 1000); Tue, 04 Nov 2014
\r
27 From: David Bremner <david@tethera.net>
\r
28 To: Michal Sojka <sojkam1@fel.cvut.cz>, notmuch@notmuchmail.org
\r
29 Subject: Re: [PATCH v2 06/10] cli: Introduce "notmuch address" command
\r
30 In-Reply-To: <1415058622-21162-7-git-send-email-sojkam1@fel.cvut.cz>
\r
31 References: <1415058622-21162-1-git-send-email-sojkam1@fel.cvut.cz>
\r
32 <1415058622-21162-7-git-send-email-sojkam1@fel.cvut.cz>
\r
33 User-Agent: Notmuch/0.18.2+156~g3cc8ed5 (http://notmuchmail.org) Emacs/24.4.1
\r
34 (x86_64-pc-linux-gnu)
\r
35 Date: Tue, 04 Nov 2014 07:52:15 +0100
\r
36 Message-ID: <87d293mp9c.fsf@maritornes.cs.unb.ca>
\r
38 Content-Type: text/plain
\r
39 X-BeenThere: notmuch@notmuchmail.org
\r
40 X-Mailman-Version: 2.1.13
\r
42 List-Id: "Use and development of the notmuch mail system."
\r
43 <notmuch.notmuchmail.org>
\r
44 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
45 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
46 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
47 List-Post: <mailto:notmuch@notmuchmail.org>
\r
48 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
49 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
50 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
51 X-List-Received-Date: Tue, 04 Nov 2014 06:52:29 -0000
\r
53 Michal Sojka <sojkam1@fel.cvut.cz> writes:
\r
56 > + local cur prev words cword split
\r
57 > + _init_completion -s || return
\r
60 > + case "${prev}" in
\r
62 > + COMPREPLY=( $( compgen -W "json sexp text text0" -- "${cur}" ) )
\r
66 > + COMPREPLY=( $( compgen -W "sender recipients" -- "${cur}" ) )
\r
70 > + COMPREPLY=( $( compgen -W "newest-first oldest-first" -- "${cur}" ) )
\r
74 > + COMPREPLY=( $( compgen -W "true false flag all" -- "${cur}" ) )
\r
80 > + case "${cur}" in
\r
82 > + local options="--format= --output= --sort= --exclude="
\r
83 > + compopt -o nospace
\r
84 > + COMPREPLY=( $(compgen -W "$options" -- ${cur}) )
\r
87 > + _notmuch_search_terms
\r
93 I am reminded that we have no tests for shell completion stuff, which
\r
94 seems pretty fragile.
\r
97 > + ``--format=``\ (**json**\ \|\ **sexp**\ \|\ **text**\ \|\ **text0**)
\r
98 > + Presents the results in either JSON, S-Expressions, newline
\r
99 > + character separated plain-text (default), or null character
\r
100 > + separated plain-text (compatible with **xargs(1)** -0 option
\r
101 > + where available).
\r
103 > + ``--format-version=N``
\r
104 > + Use the specified structured output format version. This is
\r
105 > + intended for programs that invoke **notmuch(1)** internally. If
\r
106 > + omitted, the latest supported version will be used.
\r
110 I wonder if at some point we should have a notmuch-output-formats.7 page.
\r
113 > + ``--exclude=(true|false|all|flag)``
\r
114 > + A message is called "excluded" if it matches at least one tag in
\r
115 > + search.tag\_exclude that does not appear explicitly in the
\r
116 > + search terms. This option specifies whether to omit excluded
\r
117 > + messages in the search process.
\r
119 Similarly for excludes. I'm ok with the duplication for now, and I can
\r
120 see an argument for not making the user chase references.
\r