Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 49060431FC0 for ; Fri, 18 Dec 2009 16:36:42 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AMgVeddNlCSi for ; Fri, 18 Dec 2009 16:36:41 -0800 (PST) Received: from pivot.cs.unb.ca (pivot.cs.unb.ca [131.202.240.57]) by olra.theworths.org (Postfix) with ESMTP id 552AF431FAE for ; Fri, 18 Dec 2009 16:36:41 -0800 (PST) Received: from fctnnbsc30w-142167182194.pppoe-dynamic.high-speed.nb.bellaliant.net ([142.167.182.194] helo=localhost) by pivot.cs.unb.ca with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1NLnJI-0007Nm-7t; Fri, 18 Dec 2009 20:36:40 -0400 Received: from bremner by localhost with local (Exim 4.69) (envelope-from ) id 1NLnJC-0004By-Ps; Fri, 18 Dec 2009 20:36:34 -0400 From: David Bremner To: Carl Worth , notmuch@notmuchmail.org In-Reply-To: <87iqc4yyo8.fsf@yoom.home.cworth.org> References: <1261114167-sup-8228@lisa> <1261141195-5469-1-git-send-email-david@tethera.net> <87iqc4yyo8.fsf@yoom.home.cworth.org> Date: Fri, 18 Dec 2009 20:36:34 -0400 Message-ID: <871virsstp.fsf@pivot.cs.unb.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Sender-Verified: bremner@pivot.cs.unb.ca Subject: Re: [notmuch] [PATCH] Add an "--output=(json|text|)" command-line option to both notmuch-search and notmuch-show. X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Dec 2009 00:36:42 -0000 On Fri, 18 Dec 2009 09:33:43 -0800, Carl Worth wrote: > I think that selecting *what* to emit is orthogonal from selecting *how* > to format that output. I can see that point of view. > See some ideas in the TODO file, (where I proposed --for and --format > options for these). It's a detail, but could you choose two names that are not substrings of each other? Eventually we do want tab completion on the command line to work :). Also, "search --for tags foo" suggests to me that searching for tags matching foo. What about using --output for that? One thing that is not completely clear to me at this point is what the difference is between notmuch search --for messages search-terms and notmuch show search-terms David