tumashu/vertico-posframe

If my search gets really long, I can no longer see the candidates

draxil opened this issue · 4 comments

If my search gets too long for the posframe, the whole view aligns so I can no longer see the candidates:

image

This doesn't happen in "vanilla" vertico as it just wraps:

image

I feel like this is a recent thing, although maybe I've just started using longer paths.

ef430c2

try (setq vertico-posframe-truncate-lines nil)

Magic that fixes it for me! Thanks

minad commented

@tumashu I don't think the addition of vertico-posframe-truncate-lines is a good idea. You usually want truncation enabled and only disable it when the input becomes too long. See https://github.com/minad/vertico/blob/a92b1e47ffe343e2c3096e2ea61af013a8a02af9/vertico.el#L558 for how Vertico itself handles this. Maybe that automatic solution could work for vertico-posframe too?

Maybe that automatic solution could work for vertico-posframe too?

Maybe :-)