unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Jani Nikula <jani@nikula.org>
To: Yuri D'Elia <wavexx@thregr.org>, notmuch@notmuchmail.org
Subject: Re: Flat search and threaded views
Date: Thu, 04 Aug 2016 19:33:58 +0300	[thread overview]
Message-ID: <877fbwv6h5.fsf@nikula.org> (raw)
In-Reply-To: <87k2fwbl24.fsf@wavexx.thregr.org>

On Thu, 04 Aug 2016, Yuri D'Elia <wavexx@thregr.org> wrote:
> Hi everyone, I'm experimenting with notmuch-emacs.el (straight from
> git), and I have a few questions after a few days of testing.
>
> The search buffer packs messages in threads by default. Is there a way
> to have a flat list of strictly matching messages when needed?

Just the command-line interface, AFAIK.

> For example, for a query like "tag:unread AND date:24h..now", I'm shown
> all threads containing unread messages within the last day, which is
> perfect. But when I select a thread (with RET), I'm shown the thread
> from the start.
>
> I'd like to jump directly to the first unread message (and in detail, to
> the first message that actually matches the query!). It's really not
> great to have to find what message matched the query, especially for
> long-running threads.

For me, hitting RET in search does show the first matching message in
the thread.

> Another odd behavior I get as a result is that you obviously need to
> select the unread message explicitly to remove the unread tag.

The idea is that the unread tag gets dropped when the cursor visits the
region of an expanded message, in an approximation of when the user has
actually read the message. We spent quite a bit of time on this, and at
least I like this behaviour very much, especially with the red
overstrike on the unread tag in the buffer.

If you want to remove unread tags without actually reading the messages
(why would you want to do that?), you should probably tag the messages
some other way.

> Applying tags to _individual_ messages is similarly weird, as you
> cannot do that from the search view (they would apply to the entire
> thread). Maybe I'm missing a better way here.

I suppose we could use a feature to tag matching messages from the
search view and expanded messages from the show view. You can of course
do this on the command-line.

> Tree view is only marginally better in both scenarios.
>
> You can start a tree search with 'z', but is there a way to make
> searches from the notmuch-hello box into tree by default?

Click [edit] on the saved searches, customize Search Type for each query
you want to use non-default search for. You can also hit 'Z' in both the
search buffer and the show buffer to display them in the tree view.

In general, '?' will display nice help in almost all notmuch buffers.

> Is there a way to sort the search (either tree/search) by subject or
> by author? Rarely useful, but it doesn't seem possible.

I don't think so.


BR,
Jani.

  reply	other threads:[~2016-08-04 16:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-04 15:39 Flat search and threaded views Yuri D'Elia
2016-08-04 16:33 ` Jani Nikula [this message]
2016-08-04 17:21   ` Yuri D'Elia
2016-08-11 15:54     ` Yuri D'Elia
2016-08-04 16:37 ` Jani Nikula
2016-08-04 17:33 ` Matt Armstrong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877fbwv6h5.fsf@nikula.org \
    --to=jani@nikula.org \
    --cc=notmuch@notmuchmail.org \
    --cc=wavexx@thregr.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).