unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Carl Worth <cworth@cworth.org>
To: David Edmondson <dme@dme.org>, Keith Packard <keithp@keithp.com>,
	notmuch@notmuchmail.org
Subject: Re: [PATCH] Customize saved search order separately from regular search order
Date: Thu, 03 Jun 2010 17:45:20 -0700	[thread overview]
Message-ID: <87d3w7eicf.fsf@yoom.home.cworth.org> (raw)
In-Reply-To: <87d3xcexq9.fsf@ut.hh.sledj.net>

[-- Attachment #1: Type: text/plain, Size: 2582 bytes --]

On Tue, 04 May 2010 12:02:22 +0100, David Edmondson <dme@dme.org> wrote:
> On Mon,  3 May 2010 13:58:27 -0700, Keith Packard <keithp@keithp.com> wrote:
> > I use 'saved searches' as a folder mechanism and want them to be shown
> > oldest first. Otherwise, while searching for messages normally, I want
> > to see the most recent messages first. This patch makes these two
> > default search orders separate.
> 
> This is a nice patch.

I think this is a nice start, but that we actually want a different
notion here.

Keith happens to use saved searches only for subsets of his inbox and in
that case, it makes a lot of sense to see the results of all of these
messages in an oldest-first order.

But saved searches are also useful for simply capturing what might be an
often-used but otherwise painful-to-keep-retyping search expression
where the user really wants the results to appear with the newest
message first, (which is the default search-results order after all).

So I think what we actually want here is an additional member for our
saved-search tuple which indicates the desired search order for that
particular search. That's the only way I see to support a single user
who wants to take advantage of both kinds of searches.

Thoughts?

A separated, but perhaps related idea would be to explicitly support the
notion of one search being a subset of another. I have an "inbox" search
(tag:inbox) and several searches that are subsets, ("notmuch" is
"tag:notmuch and tag:inbox"). If this were setup as an actual hierarchy
it might have two advantages:

	1. It would be a bit simpler to specify all of theses searches,
	   I wouldn't have to keep repeating "and tag:inbox" in each.
	   This would be particularly important if I changed the
	   criteria for the top-level search.

	2. If the various levels of the hierarchy were displayed
	   separately it would be easier for me to focus on processing
	   all of my inbox folders (which happen to be
	   oldest-first)--archiving each down to 0 messages, without
	   being distracted by several (newest-first) saved searches
	   that will only ever grow and don't have any
	   processing/archiving associated with them.

I think that currently I'm not using any of these
always-growing/newest-first searches in part because they would be mixed
up with my inbox-subset folders and would thereby be distracting. So (2)
above would allow me to start using them, and then I would want the
feature to selectively set the search order.

-Carl

-- 
carl.d.worth@intel.com

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2010-06-04  0:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-03 20:58 [PATCH] Customize saved search order separately from regular search order Keith Packard
2010-05-04 11:02 ` David Edmondson
2010-06-04  0:45   ` Carl Worth [this message]
2010-06-04  6:36     ` Michal Sojka
2010-06-04  6:37       ` [PATCH RFC] notmuch-hello: What's in your inbox Michal Sojka
2010-06-07 13:49     ` [PATCH] Customize saved search order separately from regular search order David Edmondson
2010-06-07 13:53       ` David Edmondson

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=87d3w7eicf.fsf@yoom.home.cworth.org \
    --to=cworth@cworth.org \
    --cc=dme@dme.org \
    --cc=keithp@keithp.com \
    --cc=notmuch@notmuchmail.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).