Skip to content
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

Merged
merged 10 commits into from
Dec 9, 2020

Conversation

clemera
Copy link
Collaborator

@clemera clemera commented Dec 9, 2020

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 and sole seems to make the most sense with selectrum when it is not clearly finished. 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.

@clemera clemera force-pushed the improve-completion-in-region branch from 679facb to f19e2d3 Compare December 9, 2020 12:39
@minad
Copy link
Contributor

minad commented Dec 9, 2020

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.

@clemera
Copy link
Collaborator Author

clemera commented Dec 9, 2020

It is actually more consistent now in a way because we have the same behaviour for non file completions.

@clemera
Copy link
Collaborator Author

clemera commented Dec 9, 2020

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.

@clemera
Copy link
Collaborator Author

clemera commented Dec 9, 2020

Should work fine now. I also added the option asked for in #223.

@minad
Copy link
Contributor

minad commented Dec 9, 2020

@clemera Cool!

@clemera clemera force-pushed the improve-completion-in-region branch from 8bee6f4 to 62ffaa2 Compare December 9, 2020 14:31
@clemera clemera merged commit 5b74d15 into radian-software:master Dec 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants