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

Low-level Scintilla API for Copilot/AI #3543

Closed
develCuy opened this issue Aug 14, 2023 · 2 comments
Closed

Low-level Scintilla API for Copilot/AI #3543

develCuy opened this issue Aug 14, 2023 · 2 comments

Comments

@develCuy
Copy link

develCuy commented Aug 14, 2023

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 an 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.

@elextr
Copy link
Member

elextr commented Aug 14, 2023

Whats wrong with this to get text?

Note that its probably UB if start and end are not UTF-8 code point boundaries.

@jEsuSdA
Copy link

jEsuSdA commented Nov 30, 2023

Hi @develCuy !

Have you made the plugin yet?
Is this plugin public?

Thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants