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 · 1 comment
Open

Preprocess user messages #107

helins opened this issue Feb 15, 2024 · 1 comment
Labels
enhancement New feature or request

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.

@qaptoR
Copy link

qaptoR commented Jul 20, 2024

I desire this feature as well. I will work on a PR in the coming week or so.

If anyone has an preference or suggestion for what the preprocessor syntax ought to look like, leave them in a comment. There was a plugin for obsidian that had this feature available, and so I will try to make the PR on parity with it.

@Robitx Robitx added the enhancement New feature or request label Aug 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants