Gnus development mailing list
 help / color / mirror / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: ding@gnus.org
Subject: Re: [RFC] Gnus generalized search, part II
Date: Wed, 26 Apr 2017 08:51:13 -0700	[thread overview]
Message-ID: <8760hr5fri.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <874lxbhjam.fsf@hanan>

Andrew Cohen <cohen@bu.edu> writes:

> Hi Eric:
>
> I noticed you have eliminated the 'shortcut option in nnir. This was
> important functionality which should probably be restored (stopping
> after the first match rather than finding all matches). For example its
> used in article referral (when the referral methods include 'nnir) where
> we are just trying to find a particular message-id.
>
> I originally implemented this as part of the criteria in the search
> query. Since these are going away in the universal search form the
> shortcut implementation will be different. Maybe just include another
> search term, like "?:" and "*:" for match-one and match-any, with "*:"
> the default?

Yup, I took that out, but only temporarily -- I'll put that or an
equivalent back in soon. I think I took it out before trying to
implement MULTISEARCH: servers with this capability won't need the group
loop at all, they can search many/all groups with a single command. That
should provide a nice speedup for all searches on servers that support
it (curse you, Dovecot!), but in particular for the message-id search.
Anyway, it will get put back in.

I've actually ended up restoring something like the criteria: I
mentioned in an earlier message allowing "meta" search terms like
thread, sort, limit, or count. Those will be parsed and stored outside
the query itself. A "single result" key could live there, but I'm not
sure it's necessary: a search on message-id implies single result, and
you could use "limit" in other cases.

> And on the long list of things that would be nice: when inputting the
> universal query string TAB should complete on the preset search keys.
> If I want to search for an author the current nnir allows this with only
> a few keystrokes: C-u G G; "author-name" RET; f TAB; RET. gnus-search
> should allow something similar.

Right now you can truncate search keys arbitrarily, so long as they
remain unambiguous. Ie, "subject:flights" can be given as
"subj:flights", or even "su:flights" (but "s" alone is ambiguous with
"since"). Is that what you meant? In your example above, what does the
"f" actually complete to? I would have thought that would be the search
string.

> (Who is beginning to think that you and I are the only two who will ever
> use this new stuff).

I was starting to think the same thing! Glad to see others chiming in.




  parent reply	other threads:[~2017-04-26 15:51 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-21 21:35 Eric Abrahamsen
2017-04-22  0:16 ` Andrew Cohen
2017-04-22  7:50   ` Eli Zaretskii
2017-04-22  8:00     ` Andrew Cohen
2017-04-22 19:53 ` Lars Ingebrigtsen
2017-04-22 20:26   ` Eric Abrahamsen
2017-04-24 20:30   ` Eric Abrahamsen
2017-04-26  4:41     ` Andrew Cohen
2017-04-26  6:31       ` Adam Sjøgren
2017-04-26  7:39         ` Saša Janiška
2017-04-26 16:07           ` Eric Abrahamsen
2017-04-26  9:21       ` Joakim Jalap
2017-04-26 15:51       ` Eric Abrahamsen [this message]
     [not found]       ` <7e7ccca805864b5398551cc74123df11@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
     [not found]         ` <87k2653oum.fsf@delle7240>
2017-04-27 19:35           ` Eric Abrahamsen
2017-04-28  1:18           ` Andrew Cohen
     [not found]           ` <cb06d28e83ab4a6cab1b3cd02fc7e554@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
     [not found]             ` <87zif16j2t.fsf@delle7240>
2017-04-28  9:16               ` Andrew Cohen
2017-04-26  8:18     ` Andrew Cohen
2017-04-26 16:37       ` Eric Abrahamsen
2017-04-26 22:31         ` Eric Abrahamsen
2017-04-27  4:27           ` Andrew Cohen
2017-04-27 18:22             ` Eric Abrahamsen
2017-04-28  1:15               ` Andrew Cohen
2017-04-28 18:23                 ` Eric Abrahamsen
2017-04-28 20:52                   ` Eric Abrahamsen
2017-04-28 23:26                     ` Andrew Cohen
2017-04-29  3:57                       ` Eric Abrahamsen
2017-04-29  9:37                         ` Andrew Cohen
2017-04-30  5:13                           ` Eric Abrahamsen
2017-04-28 23:34                   ` Andrew Cohen
2017-04-29  4:16                     ` Eric Abrahamsen
2017-04-29 21:20                 ` Harry Putnam
2017-04-30  0:15                   ` Andrew Cohen
2017-04-26 17:50       ` Eric Abrahamsen
2017-04-26  8:22     ` Andrew Cohen
2017-04-23 13:48 ` Dan Christensen
2017-04-23 17:19   ` Eric Abrahamsen
2017-04-23 17:59     ` Dan Christensen
2017-04-23 23:22       ` Eric Abrahamsen
2017-04-24  1:37         ` Dan Christensen
2017-04-24 21:02           ` Eric Abrahamsen
2017-06-10  4:46     ` Eric Abrahamsen

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

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

  git send-email \
    --in-reply-to=8760hr5fri.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=ding@gnus.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.
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 NNTP newsgroup(s).