consult-dir icon indicating copy to clipboard operation
consult-dir copied to clipboard

Vertico minibuffer is unresponsive after inserting a long line

Open ceed0 opened this issue 2 years ago • 3 comments

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.

ceed0 avatar Nov 10 '22 16:11 ceed0

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

karthink avatar Dec 02 '22 02:12 karthink

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

ceed0 avatar Dec 02 '22 15:12 ceed0

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.

ceed0 avatar Dec 02 '22 16:12 ceed0