all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Dmitry Gutov <dgutov@yandex.ru>,
	Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Jonas Bernoulli <jonas@bernoul.li>,
	Emacs developers <emacs-devel@gnu.org>,
	Philippe Vaucher <philippe.vaucher@gmail.com>,
	Adam Porter <adam@alphapapa.net>, Kyle Meyer <kyle@kyleam.com>,
	Eli Zaretskii <eliz@gnu.org>
Subject: RE: handling many matches [was: [ELPA] New package: transient]
Date: Fri, 1 May 2020 15:47:46 -0700 (PDT)	[thread overview]
Message-ID: <e64d9e33-d2bf-488f-92fb-ceeff3691d21@default> (raw)
In-Reply-To: <d9f15b2a-d8b3-0c84-b7da-65aa30082e57@yandex.ru>

> > 1. Progressive matching, i.e., narrowing the set
> >    of candidates by matching another pattern.
> > 2. Pruning, by excluding matches.
> 
> This is all high-maintenance. It requires the user to master the
> matching interface first, with extra keys and new behaviors.

No, it doesn't require anything special from users.
It's pretty natural.  One key to separate match
patterns.  Another to remove the last set of matches.
Any keys will do.  And no requirement to use either.

Some completion frameworks offer #1, using SPC or
comma as the key.  Icicles uses S-SPC, by default,
so SPC can self-insert as part of a candidate.

(I don't know of other frameworks that offer #2,
but perhaps there are some.)

> Whereas "other editors" have already solved this better (perhaps not
> ideally, but better) by doing fuzzy matching with smart enough sorting.
> We should start by matching that functionality, and only then add extra
> capabilities, maybe.

I disagree (as I said) that any fuzzy matching,
with or without scoring, "solves this", at all.
___


And for the record, Icicles also offers fuzzy
matching - 7 kinds, including some that use
scoring.

https://www.emacswiki.org/emacs/Icicles_-_Completion_Methods_and_Styles#FuzzyCompletion

This is not about touting Icicles.  But for some
perspective, the relative worth of fuzzy matching
compared to progressive matching (#1) and pruning
(#2) is maybe 1 to 100.  Icicles provides a space
to compare them.

Of course, it depends on the domain of candidates;
for some domains fuzzy matching can be quite
helpful.  But even then it's better to be able to
use more than one matching (fuzzy or not) and be
able to prune matches (fuzzy or not).  Being able
to do such things doesn't mean you're required to.

In sum, fuzzy matching is a red herring, here -
completely orthogonal to the point made.



  reply	other threads:[~2020-05-01 22:47 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-01 17:20 handling many matches [was: [ELPA] New package: transient] Drew Adams
2020-05-01 22:16 ` Dmitry Gutov
2020-05-01 22:47   ` Drew Adams [this message]
2020-05-02  6:29   ` handling many matches Eli Zaretskii
2020-05-02 13:26     ` Dmitry Gutov
2020-05-02 13:52       ` Eli Zaretskii
2020-05-02 16:13         ` Dmitry Gutov
2020-05-02 16:31           ` Eli Zaretskii
2020-05-02 16:58             ` Dmitry Gutov
2020-05-02 17:25               ` Eli Zaretskii
2020-05-02 18:17                 ` Dmitry Gutov
2020-05-02 18:31                   ` Eli Zaretskii
2020-05-02 18:39                     ` Dmitry Gutov
2020-05-02 18:46                       ` Eli Zaretskii
2020-05-02 21:11                         ` Dmitry Gutov

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=e64d9e33-d2bf-488f-92fb-ceeff3691d21@default \
    --to=drew.adams@oracle.com \
    --cc=adam@alphapapa.net \
    --cc=dgutov@yandex.ru \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=jonas@bernoul.li \
    --cc=kyle@kyleam.com \
    --cc=monnier@iro.umontreal.ca \
    --cc=philippe.vaucher@gmail.com \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.