[notmuch] On "search-tags" vs. "search --for tags" (was: search-tags and tag completi...
authorCarl Worth <cworth@cworth.org>
Thu, 26 Nov 2009 15:23:37 +0000 (07:23 +1600)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:35:43 +0000 (09:35 -0800)
b1/a6903ff8c4490c5f6d235fdc2439c51c0760ea [new file with mode: 0644]

diff --git a/b1/a6903ff8c4490c5f6d235fdc2439c51c0760ea b/b1/a6903ff8c4490c5f6d235fdc2439c51c0760ea
new file mode 100644 (file)
index 0000000..bf60601
--- /dev/null
@@ -0,0 +1,81 @@
+Return-Path: <cworth@cworth.org>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id D5C86431FC0;\r
+       Thu, 26 Nov 2009 07:23:51 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id NiUmosXFRe6y; Thu, 26 Nov 2009 07:23:51 -0800 (PST)\r
+Received: from cworth.org (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 11A6F431FAE;\r
+       Thu, 26 Nov 2009 07:23:51 -0800 (PST)\r
+From: Carl Worth <cworth@cworth.org>\r
+To: Jan Janak <jan@ryngle.com>, notmuch@notmuchmail.org\r
+In-Reply-To: <87pr7a5aaj.fsf@ryngle.com>\r
+References: <87pr7a5aaj.fsf@ryngle.com>\r
+Date: Thu, 26 Nov 2009 07:23:37 -0800\r
+Message-ID: <87bpips41y.fsf@yoom.home.cworth.org>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+Subject: [notmuch] On "search-tags" vs. "search --for tags" (was:\r
+       search-tags and tag completion in notmuch.el)\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.12\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Thu, 26 Nov 2009 15:23:52 -0000\r
+\r
+On Mon, 23 Nov 2009 01:56:04 +0100, Jan Janak <jan@ryngle.com> wrote:\r
+> I considered implementing 'notmuch search --output=tags' (as we\r
+> discussed in another email), but it turned out that:\r
+> \r
+>   * Having 'notmuch search-tags' would be consistent with Carl's\r
+>     'notmuch search-messages'.\r
+\r
+Yes, but I just put that out as an RFC. I didn't actually push it out in\r
+that form, (and my big concern was overwhelming the user with a lot of\r
+different top-level commands).\r
+\r
+>   * 'notmuch search' supports other command line options (--first,\r
+>     --max-threads, --sort) and these would only work when the user uses\r
+>     the command to search for messages.\r
+\r
+Fortunately, the --first and --max-threads options are gone now. So some\r
+of that concern is gone now.\r
+\r
+>   * 'notmuch search-tags' is easier on fingers than \r
+>     'notmuch search --output=tags' :-).\r
+\r
+We can shorten the command with something like:\r
+\r
+       notmuch search --for=tags\r
+\r
+Is that any better? I don't love the '=' there, and might prefer:\r
+\r
+       notmuch search --for tags\r
+\r
+But that complicates the option parsing just a bit, (which I shouldn't\r
+really care about since what we're designing here is an interface that\r
+is easy for the user).\r
+\r
+In any case, I don't expect people typing at the command-line to do\r
+things like search for tags nearly as often as searching for\r
+threads. And that's really the biggest reason I *do* want to put this\r
+functionality behind a command-line option. I'd like to have a fairly\r
+short number of top-level commands that are each something a person at\r
+the command-line would be likely to use fairly regularly.\r
+\r
+Thanks that are more likely to be used by scripts, (such as\r
+--format=html), should be hidden behind options.\r
+\r
+-Carl\r