[PATCH 0/6] Add an unthreaded mode

Mark Walters markwalters1009 at gmail.com
Thu Feb 27 09:16:46 PST 2020

This series adds an unthreaded mode. In this mode all messages
matching the query are shown, one per line, in unthreaded (reverse)
date order. For some discussion of such a mode see
id:87mupcay3s.fsf at tethera.net and subsequent thread.

The main key bindings are u to run an unthreaded search, and U to
rerun the current query in unthreaded view.

Most of the functionality comes from the existing notmuch-tree code so
it is relatively simple.

I have been running some very similar code for just over a year and
finally found time to tidy and submit it.

One note: --entire-thread=false outputs just the matching messages
(not the entire threads) but still in threaded order, and this option
can be used by pre-existing emacs functionality (depending on user
settings); this is why I added a new --unthreaded option.

Best wishes


Mark Walters (6):
  notmuch-show.c: add an option for messages to be returned unthreaded
  Introduce unthreaded mode
  Unthreaded mode: allow different result format
  Unthreaded mode: allow user to choose different `show out' than tree
  Add a U binding to switch to unthreaded from other views
  notmuch-hello/jump: allow saved searches to specify unthreaded mode

 emacs/notmuch-hello.el | 31 +++++++++++------
 emacs/notmuch-jump.el  | 10 ++++--
 emacs/notmuch-lib.el   |  1 +
 emacs/notmuch-show.el  | 12 ++++++-
 emacs/notmuch-tree.el  | 92 +++++++++++++++++++++++++++++++++++++++++++-------
 emacs/notmuch.el       |  6 ++++
 notmuch-show.c         | 61 +++++++++++++++++++++++++++++----
 7 files changed, 180 insertions(+), 33 deletions(-)


More information about the notmuch mailing list