Re: [PATCH] emacs: Sort saved searches
authorAdam Wolfe Gordon <awg+notmuch@xvx.ca>
Tue, 6 Sep 2011 15:23:43 +0000 (08:23 +1700)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:39:22 +0000 (09:39 -0800)
d0/c5370f4637f0eda0c8f00b2729d90c82d16e5a [new file with mode: 0644]

diff --git a/d0/c5370f4637f0eda0c8f00b2729d90c82d16e5a b/d0/c5370f4637f0eda0c8f00b2729d90c82d16e5a
new file mode 100644 (file)
index 0000000..14bfe5b
--- /dev/null
@@ -0,0 +1,96 @@
+Return-Path: <awg+notmuch@xvx.ca>\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 2DFD6431FD0\r
+       for <notmuch@notmuchmail.org>; Tue,  6 Sep 2011 08:23:45 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 1.313\r
+X-Spam-Level: *\r
+X-Spam-Status: No, score=1.313 tagged_above=-999 required=5\r
+       tests=[URI_HEX=1.313] autolearn=disabled\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 q4Lz52U2iKlb for <notmuch@notmuchmail.org>;\r
+       Tue,  6 Sep 2011 08:23:44 -0700 (PDT)\r
+Received: from sam.nabble.com (sam.nabble.com [216.139.236.26])\r
+       (using TLSv1 with cipher AES256-SHA (256/256 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id A5674431FB6\r
+       for <notmuch@notmuchmail.org>; Tue,  6 Sep 2011 08:23:44 -0700 (PDT)\r
+Received: from ben.nabble.com ([192.168.236.152])\r
+       by sam.nabble.com with esmtp (Exim 4.72)\r
+       (envelope-from <awg+notmuch@xvx.ca>) id 1R0xV1-0003YO-Iv\r
+       for notmuch@notmuchmail.org; Tue, 06 Sep 2011 08:23:43 -0700\r
+Date: Tue, 6 Sep 2011 08:23:43 -0700 (PDT)\r
+From: Adam Wolfe Gordon <awg+notmuch@xvx.ca>\r
+To: notmuch@notmuchmail.org\r
+Message-ID: <1315322623575-3313863.post@n3.nabble.com>\r
+In-Reply-To: <8739gcw4lj.fsf@nikula.org>\r
+References: <1314966486-20708-1-git-send-email-jani@nikula.org>\r
+       <yf61uvx261y.fsf@taco2.nixu.fi> <8739gdb7z8.fsf@nikula.org>\r
+       <878vq4agex.fsf@servo.factory.finestructure.net>\r
+       <8739gcw4lj.fsf@nikula.org>\r
+Subject: Re: [PATCH] emacs: Sort saved searches\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+Content-Transfer-Encoding: 7bit\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\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: Tue, 06 Sep 2011 15:23:45 -0000\r
+\r
+\r
+Jani Nikula wrote:\r
+> \r
+> Hmm. Let's look at this from another perspective: do you know if there's\r
+> a reasonable way to make ordering of the customized saved searches\r
+> easier? It's not exactly user friendly to move items up and down in the\r
+> list. Or to sort them.\r
+> \r
+> On the other hand, the tags are sorted. Saved searches are not. Should\r
+> it be possible to display tags in user defined order...?\r
+> \r
+> I know I can twist this the way I want and carry my own modifications, \r
+> but I'd like to make notmuch user friendly for people who don't know \r
+> elisp.\r
+> \r
+\r
+My two cents on this, as someone who uses notmuch as a Gmail-alike for\r
+non-Gmail email:\r
+\r
+I keep my saved searches in a particular order, kind of emulating the Gmail\r
+sidebar: unread, inbox, sent, all mail.  Putting these in alphabetical order\r
+either direction would not achieve the goal of having the most\r
+used/important saved searches first (i.e. I hardly ever use all mail, so it\r
+shouldn't be first in the list).\r
+\r
+The tags list, on the other hand, I like having sorted to make tags easy to\r
+find.  It has a different purpose than saved searches for me, so its\r
+behavior is different.\r
+\r
+I think having an option to sort the saved searches is a fine idea.  The\r
+Emacs Way would probably be to have an option for the sort order that takes\r
+the name of a function, which is called to sort the searches.  My first\r
+thought is that this isn't very user-friendly.  But, thinking about it a bit\r
+more, if the default causes the searches to be sorted alphabetically, and\r
+setting the value to nil causes them not to be sorted, then it's\r
+user-friendly for the two most common cases, and still 100% customizable for\r
+those who want different sort orders.\r
+\r
+-----\r
+-- \r
+Adam Wolfe Gordon\r
+--\r
+View this message in context: http://notmuch.198994.n3.nabble.com/PATCH-emacs-Sort-saved-searches-tp3304068p3313863.html\r
+Sent from the notmuch mailing list archive at Nabble.com.\r