unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* completion-styles with increasing level of matching
@ 2022-08-01 13:05 uzibalqa via Users list for the GNU Emacs text editor
  2022-08-01 13:33 ` Emanuel Berg
  0 siblings, 1 reply; 5+ messages in thread
From: uzibalqa via Users list for the GNU Emacs text editor @ 2022-08-01 13:05 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org

I am setting up `completion-styles'. Would like to have a system
where a user could switch values according to an increasing level
of matching. From least aggressive to most aggressive. What
would be the most useful transitions?

1. (setq completion-styles '(basic substring))

2. (setq completion-styles '(basic partial-completion))

3. (setq completion-styles '(flex))

4. (setq completion-styles '(initials))

Are `flex' and `initials' considered frequently useful? Which isthe most aggressive from the two?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: completion-styles with increasing level of matching
  2022-08-01 13:05 completion-styles with increasing level of matching uzibalqa via Users list for the GNU Emacs text editor
@ 2022-08-01 13:33 ` Emanuel Berg
  2022-08-01 15:25   ` uzibalqa
  0 siblings, 1 reply; 5+ messages in thread
From: Emanuel Berg @ 2022-08-01 13:33 UTC (permalink / raw)
  To: help-gnu-emacs

uzibalqa via Users list for the GNU Emacs text editor wrote:

> Are `flex' and `initials' considered frequently useful?

Depends who you ask ...

> Which isthe most aggressive from the two?

Depends what property that is and how it is
measured/estimated ...

-- 
underground experts united
https://dataswamp.org/~incal




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: completion-styles with increasing level of matching
  2022-08-01 13:33 ` Emanuel Berg
@ 2022-08-01 15:25   ` uzibalqa
  2022-08-01 15:34     ` Emanuel Berg
  0 siblings, 1 reply; 5+ messages in thread
From: uzibalqa @ 2022-08-01 15:25 UTC (permalink / raw)
  To: Emanuel Berg; +Cc: help-gnu-emacs






Sent with Proton Mail secure email.

------- Original Message -------
On Monday, August 1st, 2022 at 1:33 PM, Emanuel Berg <incal@dataswamp.org> wrote:


> uzibalqa via Users list for the GNU Emacs text editor wrote:
>
> > Are `flex' and` initials' considered frequently useful?
>
>
> Depends who you ask ...
>
> > Which isthe most aggressive from the two?
>
>
> Depends what property that is and how it is
> measured/estimated ...

`flex' attempts to complete using in-order substrings, so `foo' matches `frodo' or `fbarbazoo'.
Whereas `initials' complete acronyms and initialisms such that `lch' matches `list-command-history'.

They seem to do the same thing to me.  Any good insight what one can do but the other can't?




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: completion-styles with increasing level of matching
  2022-08-01 15:25   ` uzibalqa
@ 2022-08-01 15:34     ` Emanuel Berg
  2022-08-01 21:38       ` Samuel Wales
  0 siblings, 1 reply; 5+ messages in thread
From: Emanuel Berg @ 2022-08-01 15:34 UTC (permalink / raw)
  To: help-gnu-emacs

uzibalqa wrote:

> `flex' attempts to complete using in-order substrings, so
> `foo' matches `frodo' or `fbarbazoo'.
> Whereas `initials' complete acronyms and initialisms such that
> `lch' matches `list-command-history'.
>
> They seem to do the same thing to me. Any good insight what
> one can do but the other can't?

While I do rely on chemical, cognitive and physical speed the
physical part of that is typing so I'm the worst person to ask
actually ;)

-- 
underground experts united
https://dataswamp.org/~incal




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: completion-styles with increasing level of matching
  2022-08-01 15:34     ` Emanuel Berg
@ 2022-08-01 21:38       ` Samuel Wales
  0 siblings, 0 replies; 5+ messages in thread
From: Samuel Wales @ 2022-08-01 21:38 UTC (permalink / raw)
  To: help-gnu-emacs

fwiw i don't use completion-styles yet i think, but i use ido +
ido-hacks + ido-clever match.  ido [with flex] and i discover short
shorthands for e.g. org headers for refiling.  those need not be
initials.  and rarely would initials work for me.

i think if you use completion-styles, whether you need flex will
depend on whether you use more than initials.

[idk if fido or the new composable stuff will be able to emulate my
setup.  if it does then maybe it will use completion-styles.]


On 8/1/22, Emanuel Berg <incal@dataswamp.org> wrote:
> uzibalqa wrote:
>
>> `flex' attempts to complete using in-order substrings, so
>> `foo' matches `frodo' or `fbarbazoo'.
>> Whereas `initials' complete acronyms and initialisms such that
>> `lch' matches `list-command-history'.
>>
>> They seem to do the same thing to me. Any good insight what
>> one can do but the other can't?
>
> While I do rely on chemical, cognitive and physical speed the
> physical part of that is typing so I'm the worst person to ask
> actually ;)
>
> --
> underground experts united
> https://dataswamp.org/~incal
>
>
>


-- 
The Kafka Pandemic

A blog about science, health, human rights, and misopathy:
https://thekafkapandemic.blogspot.com



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-08-01 21:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-01 13:05 completion-styles with increasing level of matching uzibalqa via Users list for the GNU Emacs text editor
2022-08-01 13:33 ` Emanuel Berg
2022-08-01 15:25   ` uzibalqa
2022-08-01 15:34     ` Emanuel Berg
2022-08-01 21:38       ` Samuel Wales

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).