]> git.notmuchmail.org Git - notmuch/commit
notmuch search: Change default search order to be newest messages first.
authorCarl Worth <cworth@cworth.org>
Wed, 18 Nov 2009 04:52:09 +0000 (20:52 -0800)
committerCarl Worth <cworth@cworth.org>
Wed, 18 Nov 2009 04:58:30 +0000 (20:58 -0800)
commit333486572517d2e2084d66208de59085f21d8573
tree97c3e7119958f9b15315087332c396204c133776
parent5dec429f457c5b387a43802a32ef3192592c425d
notmuch search: Change default search order to be newest messages first.

This is what most people want for a _search_ command. It's often
different for actually reading mail in an inbox, (where it makes more
sense to have results displayed in chronological order), but in such a
case, ther user is likely using an interface that can simply pass the
--sort=oldest-first option to "notmuch search".

Here we're also change the sort enum from NOTMUCH_SORT_DATE and
NOTMUCH_SORT_DATE_REVERSE to NOTMUCH_SORT_OLDEST_FIRST and
NOTMUCH_SORT_NEWEST_FIRST. Similarly we replace the --reverse option
to "notmuch search" with two options: --sort=oldest-first and
--sort=newest-first.

Finally, these changes are all tracked in the emacs interface, (which
has no change in its behavior).
lib/notmuch.h
lib/query.cc
lib/thread.cc
notmuch-search.c
notmuch.el