-
Notifications
You must be signed in to change notification settings - Fork 29
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
Completion for End should give correct section #130
Comments
That feature could use some love, though. Right now it only kicks in after a few characters, which is arguably not too useful. |
Yes - it seems to work if you type the first 3 characters correctly. At first I thought it was completing all open sections/modules but it actually seems to pick the closest one. If course I'd rather not have to get any characters right, since I typically want this when I don't remember what the name is and it's off-screen. At least from the With this working I won't care much about ProofGeneral/PG#100, at least for my own setup - autocompletion is the best API I can imagine here. |
Yeah, it shouldn't be too hard. We just need to mark that backend as ignoring the user-customized prefix length, since "End " serves as an implicit prefix. |
Cool, I'll figure out how to do that. |
Neat. You'll want to look at |
I thought company-coq already had a feature for this but couldn't find it.
It would be nice if company-coq completed the End command with the section name computed by Proof General's
coq-end-Section
. This would best be done by factoring outcoq-last-opened-section
(since the method currently inserts the computed section name).As I mentioned in ProofGeneral/PG#100, it would also be nice if these commands worked for modules and module types in the same way, since all of these blocks are fairly similar.
The text was updated successfully, but these errors were encountered: