I tried to code a plugin for copilot but soon realized that your api doesn't allow low level control of scintilla or I'm too noob to realize how. Copilot only needs to grab context from current cursor position (say 200 chars before and after), then it will suggest autocompletion options. Btw, Copilot is not the only tool for the task, I plan to add and OpenAI backend that can be gracefully replaced by LocalAI for 100% private and off-line coding (so no IP issues). Devs can choose to train/finetune their own LLM if they wish, plug it into LocalAI and let the geany plugin take care of the rest.
Whats wrong with [this](https://www.geany.org/manual/reference/sciwrappers_8h.html#aa24517d0c81f780d...) to get text?
Note that its probably UB if `start` and `end` are not UTF-8 code point boundaries.
Closed #3543 as completed.
Hi @develCuy !
Have you made the plugin yet? Is this plugin public?
Thank you so much!
github-comments@lists.geany.org