Improve grid mode width computation #415
Replies: 1 comment
-
Thanks for the report. The problem is that the width computation for the grid does not take into account candidate formatting and annotations. This is mainly done for simplicity and performance. See here: vertico/extensions/vertico-grid.el Lines 122 to 127 in 017ff44 I consider this a minor display issue. We could use a different approach where the candidates are annotated first, formatted and then the length and alignment is computed. It will be a little more costly, but if we don't look too far back and ahead it should work well. Patches implementing this are welcome. Converted the issue to an ideas discussion. |
Beta Was this translation helpful? Give feedback.
-
Hello, I am having this problem that in grid mode, certain characters are being truncated wrongfully when the search is being successively refined. i do not know how to describe this, so I am attaching a video to clarify this problem, please advice how to solve this.
Only happens when "Indexed and Grid" used together
untitled.mp4
Following is all the configuration I have done,
p.s. i tried disabling vertico-truncate-mode, but this doesn't seem to be related to that
Beta Was this translation helpful? Give feedback.
All reactions