Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vertico minibuffer is unresponsive after inserting a long line #23

Open
ceed0 opened this issue Nov 10, 2022 · 3 comments
Open

Vertico minibuffer is unresponsive after inserting a long line #23

ceed0 opened this issue Nov 10, 2022 · 3 comments

Comments

@ceed0
Copy link

ceed0 commented Nov 10, 2022

If I run consult-dir from find-file and a selected path is too long, vertico's input is truncated and doesn't work properly until I press TAB.

It could be fixed with consult--completion-refresh-hook like that:

        (when new-dir
          (if consult-dir-shadow-filenames
              (insert "/" new-full-name)
            (delete-minibuffer-contents)
            (insert new-full-name))
          (run-hooks 'consult--completion-refresh-hook)))

But I'm not sure if it's a vertico bug or works as intended, through, because plain minibuffer works without the fix.

@karthink
Copy link
Owner

karthink commented Dec 2, 2022

Thanks for the heads-up. I'm not able to reproduce this, how long a path do you need to trigger this behavior?

@ceed0
Copy link
Author

ceed0 commented Dec 2, 2022

Long enough to trigger truncation, I guess. Here how it looks
image
And here with the fix
image

@ceed0
Copy link
Author

ceed0 commented Dec 2, 2022

And the title is misleading, my bad, I thought it was unresponsive, because vertico ignored old input at the start of the line. So really there only two things that are wrong - line truncation and cursor position.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants