all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tsdh@gnu.org>
To: Samuel Wales <samologist@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: can vertico approximate this ido setup?
Date: Sun, 04 Jun 2023 10:57:24 +0200	[thread overview]
Message-ID: <87zg5f37j1.fsf@gnu.org> (raw)
In-Reply-To: <CAJcAo8vDGk6078GT6p1bTyJMA_dUG7KMv_SBM5BdjYHzhmpjsQ@mail.gmail.com>

Samuel Wales <samologist@gmail.com> writes:

Hi Samuel,

> but my initial attempts were worse than my ido setup.  i do NOT know
> what i am doing here.  but e.g.
>
>   - my selections are very wrong compared to clever match

Define "very wrong", e.g., with a screenshot of what you get and a
statement what you'd expect to get.

FWIW, I see that you put the flex and orderless completion style in
completion-styles.  You have to be aware that at least flex matches very
distant candidates, e.g., foo matches after-some-root.  Ok, that's the
purpose of the style but I think it's only useful if you place it at the
very end of completion-styles with more exact styles at the beginning,
e.g. (partial-completion substring flex).

Orderless can also be slightly confusing because fo-ba matches bar-foo.
Again, that's the purpose of the style but maybe it's also better used
later in completion-styles, e.g., it's much more exact than flex but
less so than partial-completion or substring.

Also, I have the experience that some completion styles work great for
one kind/category of completion but not for others, so I use
completion-category-overrides.

--8<---------------cut here---------------start------------->8---
(setopt completion-styles '(partial-completion substring flex))

(setopt completion-category-overrides
        '((project-file
           (styles partial-completion substring initials))
          (file
           (styles partial-completion substring initials))
          (eglot
           (styles partial-completion substring))))
--8<---------------cut here---------------end--------------->8---

>   - faces don't seem to get recognized when i specify them
>     - also i don't get variable pitch
>     - also i don't understand the completion-first-difference face

I go with the defaults (of my theme) so cannot comment on that.  I guess
that also completion-first-difference is not well-defined with styles
where matching is not anchored at the beginning of the candidate.  I
think it's always the character after the last matched character.

>   - have not tried consult yet
>   - embark uses more than window height or confuses
> [...]
> i am very limited in computer use, so before i try new things or
> search, i want to know if it is worth trying to configure vertico to
> work approximately like my setup.  my question is whether it is
> configurable to come close-ish to my ido.

I'd rather start out small, i.e., vertico / corfu / marginalia and add
more stuff (orderless, consult, cape, embark) later on if I feel that
I'm missing something here and there.  I think ido supports some special
things (creating directories, deleting files during file completion or
killing buffers during buffer completion?) which you could probably do
with embark but well...

Bye,
Tassilo



  parent reply	other threads:[~2023-06-04  8:57 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-04  1:40 can vertico approximate this ido setup? Samuel Wales
2023-06-04  6:41 ` Michael Albinus
2023-06-04  7:08   ` Samuel Wales
2023-06-04  8:57 ` Tassilo Horn [this message]
2023-06-05  1:07   ` Samuel Wales
2023-06-05  7:08     ` Tassilo Horn
2023-06-11  0:54       ` Samuel Wales
2023-06-11  1:05       ` Samuel Wales
2023-06-11 13:26         ` [External] : " Drew Adams

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=87zg5f37j1.fsf@gnu.org \
    --to=tsdh@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    --cc=samologist@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.