Open hermanhel opened 4 months ago
Hi, loved the citar--select-multiple UI! It is the best completion UI I've ever seen in emacs, and I wonder if you guys are interested in making it a seperate package?
Doubtful, for a few reasons:
consult-completing-read-multiple
that minad removed because of some limitations that were hard (impossible?) to resolve. See https://github.com/minad/consult/issues/567. Not sure if that is true here as well.But I didn't write this code anyway ;-)
cc @aikrahguzar @roshanshariff
EDIT: for consistency.
I think such a more general citar--select-multiple
is possible but it is non-trivial. The only place where it can be freely adopted by other packages is Emacs core and that will require even more effort.
@hermanhel if you want to experiment with this here are my thoughts when I did something similar for filechooser:
completing-read
in a loop. This should take care of vertico
like UIs and should work for simple collections.completing-read
. If the form of collection is known in advance (as for citar
and filechooser
) things are easy but doing this generally will require a thorough reading of completion sections in emacs
and elisp
manuals.try-completion
for this completion-table
transformer will be quite difficult to figure out exactly.
Hi, loved the citar--select-multiple UI! It is the best completion UI I've ever seen in emacs, and I wonder if you guys are interested in making it a seperate package?
I'm currently using a hacky snippet
which enables selecting and returning selected items(and avoiding the CRM-seperator "," breaks item with "," in it caveat). TAB and ENT on selected item will result in error but otherwise it does the job, so I imagine it won't be too much of a hassle?![image](https://github.com/emacs-citar/citar/assets/74124690/87ec547b-9c19-4146-97dc-632805675d8f)