-
Notifications
You must be signed in to change notification settings - Fork 33
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 option to control setting of completion-in-region-function
#223
Comments
Ah, to answer my own question: That does the trick. (selectrum-mode 1)
(setq-default completion-in-region-function
selectrum--old-completion-in-region-function) Maybe there should be a variable controlling if selectrum should activate itself for in-buffer completion, so I let that issue open for now. |
Having an option for this is a good idea, icomplete and ivy have this as well. BTW file completions act like |
completion-at-point-functions
) in-buffer?completion-in-region-function
If there is only one file candidate the minibuffer shouldn't open and the result should be inserted in place, we have to update that, too. |
@clemera Yes, that in-buffer file completion completes the whole path in one go is actually nice but still I'm distracted by the input switching from one very specific position in a buffer to the bottom left minibuffer. That might be mitigated with a |
There is also mini-frame but it doesn't feature an "at point" option AFAIK. |
After some experimentation I think it's better to pop to the minibuffer even if there is only one candidate (for file completion). Inserting the single candidate immediately will only help if you wanted to stop completion there but I think it is more common to navigate through several path levels and in this case the current behaviour has an advantage. |
When #261 got merged you only get prompted if there are multiple candidates for the current input. |
As mentioned over there I also added the option you asked for named |
After reconsideration I think the behaviour of #261 is a good compromise, pressing TAB again will let you drop into the minibuffer after single candidate insertion if needed. This is also more similar to how default completion works and is generally better if the single candidate is a file and not directory. |
Should be fixed by #261? |
@clemera The new option |
I just started using selectrum with prescient and I like it very much. However, one thing I would like to disable is the feature that normal in-buffer completion (
completion-at-point-functions
) is now also transferred into the minibuffer. How can I do that?As an example of what I mean, here's a recipe for
shell
:M-x shell RET
cd ~/R<TAB>
Now the path is going to be read from the minibuffer instead being normally TAB-completed in place (with possibly a
*Completions*
buffer if there are many choices starting with the current prefix or cycling if there are just a few).The text was updated successfully, but these errors were encountered: