Conversation
completing-read-multiplef5bf979 to
a6f4860
Compare
|
Hi, at a quick glance, without UI changes of I see that I've thought maybe we could insert the bibtex keys (which are much shorter) as selected items but Personally, selecting multiple items in minibuffer is not that convenient for me. I prefer to show only 7~10 items in minibuffer due to a limited display. I used to use Maybe I'm wrong since I'm not a very experience user in How do you think? |
|
I agree the current multiple select UI in
Yes, that's correct. If you haven't already, see radian-software/selectrum#489. The idea @clemera suggested there would be a huge improvement. radian-software/selectrum#489 (comment) The changes to the function I pushed last night, which are almost working, were suggested by the But we still need to use multiple in order for that to work. If you select four items in the collect buffer, and run insert-bibtex, this should correctly work. Otherwise, you'd have to separately run the command four times, and likely manually deal with the formatting that the commands handle instead. |
|
This actually now should work. You just have to use the ampersand separator instead of comma. |
|
FYI, embark integration doesn't generate errors, @oantolin, but also doesn't generate correct output with multiple selections. If I select two candidates, for example, and run Is there something else I need to do so embark knows how to handle the custom crm-separator? I was assuming, based on what you wrote earlier, that this should just work. |
The bibtex-completion functions all take multiple keys as input, and some of them (notably the "input" ones) lose functionality without support for this. Hence, this changes the core read function to using 'completing-read-multiple'. Addresses #17.
|
I merged this. We can test further and see if we can figure out the embark piece. |
The bibtex-completion functions all take multiple keys as input, and
some of them (notably the "input" ones) lose functionality without
support for this.
Hence, this changes the core read function to use
'completing-read-multiple'.
In order to do that, it also sets the
crm-separatorto ampersand, sincedefault comma won't work for these data.
Addresses #17.
see oantolin/embark#176 (comment)