Making Vertico's implementation of completing-read-multiple remove an entry if it is repeated? #666
-
|
Specificically, If Vertico's completing-read-multiple is somehow made to remove But the blast radius is also obviously pretty wide (what about commands that actually don't care about duplicates). I'm not sure. Is this idea as bad as I'm expecting? If touching completing-read-multiple really is too disruptive, maybe implementing this as |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
If the prompt already contains EDIT: I should add Vertico doesn't provide a completing-read-multiple implementation. It provides just the UI for the default completing-read-multiple function. |
Beta Was this translation helpful? Give feedback.
If the prompt already contains
:tag1:tag2:you can simply select the prompt and press RET. Then the result will be:tag1:tag2:. If you addtag1via Vertico, of course the returned result will be:tag1:tag2:tag1:. It seems to be the responsibility oforg-set-tags-commandto filter out duplicates, if this is desired.completing-read-multipledoesn't guarantee a list of unique values as far as I know, since the duplicates might be desired in some cases.EDIT: I should add Vertico doesn't provide a completing-read-multiple implementation. It provides just the UI for the default completing-read-multiple function.