[PATCH v2 0/2] sort saved searches, again

Adam Wolfe Gordon awg+notmuch at xvx.ca
Wed Sep 7 08:53:05 PDT 2011


(Sorry if anyone gets this twice; I sent it to the list initially from
the wrong email address.)

On Wed, Sep 7, 2011 at 02:01, Jani Nikula <jani at nikula.org> wrote:
> On Tue, 6 Sep 2011 08:23:43 -0700 (PDT), Adam Wolfe Gordon <awg+notmuch at xvx.ca> wrote:
>> 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.
>
> Please find this implemented in patch 1.

I've tried the patches, and they work properly for me.  I think this
looks good; hopefully others agree.

> I hardly use tags at all. I have dozens of saved searches instead. Thus
> I want the saved searches to be easy to find, and I'd rather have the
> computer sort them for me. I do admit to renaming the most important
> ones to start with capital letters so they pop up first even when
> sorted.
>
> Since it seems that people generally prefer to keep the most important
> saved searches first in the list, I've included patch 2 to make new
> saved searches be added to the end of the list rather than inserted in
> the beginning.

Indeed, I expect there are many different notmuch workflows.  I think
these patches keep notmuch general enough to support any workflow,
while making the common ones very easy to use.

-- 
Adam Wolfe Gordon


More information about the notmuch mailing list