Open bcp-dev-ops opened 12 months ago
I'm not sure if I understood it correctly, but there is a CodeCompletion feature showcased here: https://youtu.be/7k0KZsheLP4?si=-htsXx8ErRjG62ER&t=387. Is this what you are looking for?
Ah not quite-- unless the CodeCompletion feature also works with prompts?
I'm looking to write a prompt inline and get the result inline (not necessarily write partial code inline and get the result inline)
Could this be related to https://github.com/jackMort/ChatGPT.nvim/issues/285 ?
Looking for some help building out a feature. Basically looking for a way to be able to write prompts "inline" and then iteratively execute the whole file, using the current line as a prompt. (I think this could be a workflow gamechanger.)
For example, if I wanted to write a prompt on line 6 (to insert the result after line 6), I could write a comment like: "// Write a function that prints "Hello, World!" to the console"
example.js
Here is my lua function, but getting stuck trying to figure out how to use the EditAction
Spinning my wheels a bit here-- getting an API error on the result: // API ERROR: 'instruction' is a required property
Been playing around for an hour but have run out of time, will continue to experiment over the upcoming days. Any ideas on how to help?