-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an option to disable multiple-candidate selection #492
Comments
WDYT @roshanshariff @localauthor? Any unintended consequences from supporting this? One obvious question I have is whether that would apply to all commands. |
PS - the issue with the consult crm UI can be resolved in config so that you use TAB to select, and RET to exit, in which case it behaves as CR when selecting only one. I don't have any example code though. |
I agree with @salutis sentiment. And it's pretty easy to implement a But I also wonder if some commands should just not use CRM anyway:
EDIT: But if we could figure out the alternate keybindings @bdarcus mentioned, I might be happy with that too. |
But yeah, we can think abou that.
Here's the commit where Daniel removed the bindings from Consult: This will likely be added, for example, to the Doom vertico module. |
When nil, all citar commands will use `completing-read` instead of `completing-read-multiple`. Closes emacs-citar#492
When nil, all citar commands will use `completing-read` instead of `completing-read-multiple`. Closes #492
Evaluating this seems to do the trick:
I'm adding this to my own config to try for a bit, because this behavior seems really great. We'll see. |
Yes; it's basically the UI that we settled on in the initial vertico-crm prototype. I think the only reason he removed it from consult was it adds completion UI specific code he didn't want to maintain. In practice, it behaves exactly the same as |
Could it happen that Citar moves to completing-read only or is this not realistic? This would remove quite a bit of complexity. Note that embark-multitarget-actions have only been introduced to support the Citar actions which take multiple candidates at once (CRM commands). If Citar moves away from completing-read-multiple this Embark feature would not be needed. embark-act-all will stay since this is generally useful and we may still want to add a feature to select candidates one by one and then embark-act-all on them. This way one should end up with a UI which is quite similar to crm, but based purely on cr without the CRM complications. |
Yes, it's possible, depending in part on how the embark etc features evolve. I think we also need to test out the idea @roshanshariff was floating. The code, both here and in org, has evolved a lot since I first settled on CRM.
Is it not likely/possible that |
Maybe. But if you make sure that your single-target commands, which rely on
I am not sure if you remember, but I've argued multiple times against CRM. The API is not well specified, has edge cases and overall feels broken and not well-designed. I mean it suffices to look at the default completion experience of CRM without The idea by @roshanshariff is similar to the picture I had in mind for an ecosystem, where |
I do; a few reasons why I didn't follow through then:
|
So much better! That said, while |
Well, that's different code, different UI. In principle opening related resources could be a good candidate for an In the meantime, I've created a branch to test that out in #496. |
I use Citar every day and have done so for quite a while now. Yet, I have never needed to select multiple items. Not once. Thus, all these
RET RET
confirmations at every step do nothing for me. Thus, I would like to ask for a configuration option to disable multiple-candidate selection in Citar.P.S. Today I decided to try using MCT (Minibuffer and Completions in Tandem) instead of Vertico, and the Citar workflow became even more painful due to multiple-candidate selections.
The text was updated successfully, but these errors were encountered: