From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Ag <agzam.ibragimov@gmail.com>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: Programmed completions are utterly confusing
Date: Mon, 14 Nov 2022 21:55:52 -0500 [thread overview]
Message-ID: <jwvzgctexs4.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <m235al9ufz.fsf@gmail.com> (Ag's message of "Mon, 14 Nov 2022 14:01:36 -0600")
> - Use case I have right now: I want to search through URLs and their
> page titles. If I put each url into the main display string, and
"search" doesn't really make sense for the completion code, because
completion is about helping you complete a string S to a "more complete
version of S". So typing text that's not in the final result goes
against the design.
If you want, you can provide a *completion style* which can match the
input string against the set of completions *and* their annotations.
I think you're thinking of completion UIs based around the idea of
selecting one of a set of candidates. Some of the completion UIs indeed
do that, but the core completion framework and the completion tables are
not designed specifically for that.
Stefan
prev parent reply other threads:[~2022-11-15 2:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-14 20:01 Programmed completions are utterly confusing Ag
2022-11-15 2:55 ` Stefan Monnier [this message]
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://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvzgctexs4.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=agzam.ibragimov@gmail.com \
--cc=emacs-devel@gnu.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://git.savannah.gnu.org/cgit/emacs.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).