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

Preprocess user messages #107

Open
helins opened this issue Feb 15, 2024 · 0 comments
Open

Preprocess user messages #107

helins opened this issue Feb 15, 2024 · 0 comments

Comments

@helins
Copy link

helins commented Feb 15, 2024

A custom hook on every user message before sending the chat for completion would make this plugin extremely extensible. For instance, a hook might rewrite messages so that a substring like [[file x]] would embed the actual file x. That would open a world of possibilities.

Of course, right know anyone could use some Neovim magic to actually embed the data directly in the chat using commands and such. However, that would often bloat the buffer (e.g. sending a large file) and generally speaking be a limiting factor.

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

No branches or pull requests

1 participant