Replies: 5 comments 4 replies
-
Hello! I don't see this problem. Can you reproduce it in emacs -Q? Do you use some special completion style settings? |
Beta Was this translation helpful? Give feedback.
0 replies
-
On Wed, Mar 27, 2024 at 10:11 AM Daniel Mendler ***@***.***> wrote:
Hello! I don't see this problem. Can you reproduce it in emacs -Q? Do you
use some special completion style settings?
—
Reply to this email directly, view it on GitHub
<#462 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA4VUDFWCY3DGF3KF62EEDY2LARBAVCNFSM6AAAAABFK4BG6WVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DSMRZGAZTM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
Thanks for the quick response! The only vertico setting I have are:
;; Enable vertico
(use-package vertico
:init
(vertico-mode)
:custom
(vertico-sort-function 'vertico-sort-history-alpha))
;; Enable richer annotations using the Marginalia package
(use-package marginalia
:bind (:map minibuffer-local-map
("M-A". marginalia-cycle))
:init
(marginalia-mode))
|
Beta Was this translation helpful? Give feedback.
1 reply
-
On Wed, Mar 27, 2024 at 10:32 AM Daniel Mendler ***@***.***> wrote:
When I enter C-x C-f s-band it will put s-band at the top since that's an
exactly matching candidate. When you type C-x C-f s-b TAB (or RET) then it
will complete to the topmost candidate given that partial input. This could
be s-band-old if that's the last visited file in the file history.
I'm having trouble intentionally reproducing this now. I have to figure
out how I'm triggering it. I has happened so many times I can't count, but
not now when I'm trying to debug it :)
|
Beta Was this translation helpful? Give feedback.
0 replies
-
OK, I think I got it. If I type C-x C-f ~/s-ba[TAB] I will get ~/s-band.
But if I'm currently in the directory ~/Download and then type ../~/s-band
look what happens, I got the wrong completion:
…On Wed, Mar 27, 2024 at 10:47 AM Neal Becker ***@***.***> wrote:
On Wed, Mar 27, 2024 at 10:32 AM Daniel Mendler ***@***.***>
wrote:
> When I enter C-x C-f s-band it will put s-band at the top since that's an
> exactly matching candidate. When you type C-x C-f s-b TAB (or RET) then it
> will complete to the topmost candidate given that partial input. This could
> be s-band-old if that's the last visited file in the file history.
>
I'm having trouble intentionally reproducing this now. I have to figure
out how I'm triggering it. I has happened so many times I can't count, but
not now when I'm trying to debug it :)
--
*Those who don't understand recursion are doomed to repeat it*
|
Beta Was this translation helpful? Give feedback.
1 reply
-
I modified my init to:
(use-package vertico
:init
(vertico-mode)
:hook (rfn-eshadow-update-overlay . vertico-directory-tidy)
:custom
(vertico-sort-function 'vertico-sort-history-alpha))
;; Enable richer annotations using the Marginalia package
(use-package marginalia
:bind (:map minibuffer-local-map
("M-A". marginalia-cycle))
:init
(marginalia-mode))
Hopefully that's right, I'm not that familiar with use-package.
Doesn't fix the problem completely. If I visit ~/Downloads, the if I enter
C-x C-f (here ~/Downloads is offered)../s-band it still completes to
~/Downloads/../s-band-old. If I instead just type ~/s-band, that works.
…On Wed, Mar 27, 2024 at 5:41 PM Daniel Mendler ***@***.***> wrote:
I haven't checked but this could be an Emacs bug regarding the completion
of shadowed paths (this is a buggy area). I use the following
configuration, to automatically clean up shadowed paths (see also the
readme):
:hook (rfn-eshadow-update-overlay . vertico-directory-tidy)
—
Reply to this email directly, view it on GitHub
<#462 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA4VUCIZP46NUI4PX455Q3Y2MVHXAVCNFSM6AAAAABFK4BG6WVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DSMZTG4YTQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
*Those who don't understand recursion are doomed to repeat it*
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm new to vertico (been using emacs for 40 years).
One problem I have has got me ready to abandon vertico, but maybe you can help me live with vertico.
I have a directory call s-band, and another called s-band-old. Everytime I do C-x C-f s-band, it autocompletes to s-band-old and opens that when I (muscle memory) hit RET. This is driving me nuts. Is there a setting that would fix this? I see no logic to choosing 's-band-old' when I typed 's-band' when a valid completion called 's-band' exists.
Beta Was this translation helpful? Give feedback.
All reactions