sourcegraph / emacs-cody

Sourcegraph Cody in Emacs
Apache License 2.0
50 stars 6 forks source link

Added experimental automatic completion triggering #6

Closed steveyegge closed 10 months ago

steveyegge commented 10 months ago

This PR introduces automatic completion triggering for Cody-Emacs. It's experimental at best, and is quite over-zealous. But it works.

I'm mostly committing now because it's a milestone. I'd say it's not really usable yet. Mainly since I still need to implement the "patching" logic that Valery explained to me, where it needs to replace parts of the line prefix and suffix. What I have now is a hack that only works in a few syntactic positions. But also it needs a lot of fine-tuning.

Other stuff in this PR: