-
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
Improve completion in region #261
Improve completion in region #261
Conversation
679facb
to
f19e2d3
Compare
f19e2d3
to
a58cc18
Compare
Why has your opinion on this changed? The behavior of single candidate lists. I guess it makes sense to do this, but consistency is also good. |
It is actually more consistent now in a way because we have the same behaviour for non file completions. |
I'm still figuring out if we can redrop into minibuffer completion when you press TAB again in the single candidate case, then it would be perfect. |
Should work fine now. I also added the option asked for in #223. |
@clemera Cool! |
8bee6f4
to
62ffaa2
Compare
See #260. This will insert the path immediately if there is only one match and also ensures the syntax table is set correctly for all file completions. I also adjusted the exit-status to
sole
as this leads to the least surprising behaviour (no insertion of spaces after file completion which also does not happen with default completion). The exit status is very much tied to the way default completion works andsole
seems to make the most sense with selectrum when it is not clearlyfinished
. I also decided to push the mark at the start of the candidate so one can easily jump back to the beginning of the completion.