-
|
Hallo! This is a rather special-case issue, one that seems to be shared with Helm, but not with fido-vertical-mode. Can reproduce in emacs -Q as follows, but you can probably also see it just by installing llama on your current setup. Ok, so you installed llama, now do C-h f (describe-function). There is a blank line amongst the completions. It arises from llama's Ideally there would be a completion ##, but I understand if that's out of scope for vertico. But I guess you don't want a blank line that's always at the top of the candidates. A difference with Helm is Helm doesn't necessarily put it at the top of the list. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 7 replies
-
|
Vertico moves exactly matching candidates to the front: Line 344 in b413071 If we have an empty candidate, it will appear at the top, if the prompt is empty. I am not sure if it makes sense to add a special case only for this. |
Beta Was this translation helpful? Give feedback.
-
|
But it is technically not an exact match, so I would regard it as a bug. Because llama does not introduce a 0-length macro. The macro is |
Beta Was this translation helpful? Give feedback.
-
|
Fair. So the issue is really with Llama, or with emacs-devel. On that note, I wonder if you know of some trick that Llama could do, in a minor mode or so, to exclude the empty string from all completion candidates? |
Beta Was this translation helpful? Give feedback.
-
|
Even if there is no technical issue, you can still have an usability issue. Anyway I'm not looking at Vertico as the problem domain, now I think it's actually with Actually...! Completing-read already behaves correctly. If you turn off vertico-mode, Vertico and Helm actually do something strange, in that you can choose an empty string that's not the null input, but base completing-read offers no such possibility. So it looks to me like an unintended extension to completing-read behavior. |
Beta Was this translation helpful? Give feedback.
Vertico moves exactly matching candidates to the front:
vertico/vertico.el
Line 344 in b413071
If we have an empty candidate, it will appear at the top, if the prompt is empty. I am not sure if it makes sense to add a special case only for this.