[PATCH] emacs: Sort saved searches

Adam Wolfe Gordon awg+notmuch at xvx.ca
Tue Sep 6 08:23:43 PDT 2011


Jani Nikula wrote:
> 
> Hmm. Let's look at this from another perspective: do you know if there's
> a reasonable way to make ordering of the customized saved searches
> easier? It's not exactly user friendly to move items up and down in the
> list. Or to sort them.
> 
> On the other hand, the tags are sorted. Saved searches are not. Should
> it be possible to display tags in user defined order...?
> 
> I know I can twist this the way I want and carry my own modifications, 
> but I'd like to make notmuch user friendly for people who don't know 
> elisp.
> 

My two cents on this, as someone who uses notmuch as a Gmail-alike for
non-Gmail email:

I keep my saved searches in a particular order, kind of emulating the Gmail
sidebar: unread, inbox, sent, all mail.  Putting these in alphabetical order
either direction would not achieve the goal of having the most
used/important saved searches first (i.e. I hardly ever use all mail, so it
shouldn't be first in the list).

The tags list, on the other hand, I like having sorted to make tags easy to
find.  It has a different purpose than saved searches for me, so its
behavior is different.

I think having an option to sort the saved searches is a fine idea.  The
Emacs Way would probably be to have an option for the sort order that takes
the name of a function, which is called to sort the searches.  My first
thought is that this isn't very user-friendly.  But, thinking about it a bit
more, if the default causes the searches to be sorted alphabetically, and
setting the value to nil causes them not to be sorted, then it's
user-friendly for the two most common cases, and still 100% customizable for
those who want different sort orders.

-----
-- 
Adam Wolfe Gordon
--
View this message in context: http://notmuch.198994.n3.nabble.com/PATCH-emacs-Sort-saved-searches-tp3304068p3313863.html
Sent from the notmuch mailing list archive at Nabble.com.


More information about the notmuch mailing list