[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Sole Completion bug?
From: |
Raoul Comninos |
Subject: |
Re: Sole Completion bug? |
Date: |
Tue, 16 Feb 2021 08:58:59 +0200 |
Kyle Meyer <kyle@kyleam.com> writes:
> Raoul Comninos writes:
>
>> Kyle Meyer <kyle@kyleam.com> writes:
>>
>>> Hmm, isn't this just following the built-in completing-read's behavior?
>>>
>>> (completing-read
>>> "Prompt: "
>>> (list "Chris Bell"
>>> "Phone Chris Bell"
>>> "Meeting with Chris Bell"))
>>>
>>> ;; `C<tab>` => Chris Bell -> `<tab>` => Chris Bell [Sole completion]
>>
>> You may be right. To find all entries with "Chris Bell" I need to add an
>> asterisk before "Chris" as in "*Chris". So the search is based on
>> wildcards not regex.
>
> Yeah, I think that's the "*" from the partial-completion style in
> completion-styles.
>
> (info "(emacs)Completion Styles")
>
>> Any idea how I may change this behaviour to search
>> by regex?
>
> I'm not aware of a built-in completion style that offers that, but I
> haven't used built-in completion for years. Ivy and, if I recall
> correctly, Helm support regexps. I'd guess other third-party frameworks
> do too.
>
Thanks very much.
--
Kindest regards,
Raoul Comninos