Use :Neural on visually selected words
ckangnz opened this issue ยท 5 comments
Is there any way to write up the question or instruction first, and then ask the chat GPT rather than writing down everything in :Neural ...
prompt?
I'll keep this issue open, as it's separate, but see #16. First and foremost I would like to alleviate concerns over sharing secrets/IP with third parties, and then look at other solutions regarding sending snippets of text from the editor to third parties.
A natural use would be asking ChatGPT to expand a visually selected comment, say describing a function, into the actual code (template).
A natural use would be asking ChatGPT to expand a visually selected comment, say describing a function, into the actual code (template).
Yes, this is a good use of that functionality. Bear in mind our requirements for privacy outlined in #16.
In the meanwhile, a mapping such as nnoremap <leader>n :<c-u>Neural <c-r>*
would do.
I have implemented :NeuralExplain
for visual mode, which sends visually selected text to the selected data source and prints the explanation in the preview window. I've put in nearly bare minimum effort to redact passwords and secrets, as explained in the README. More work can be done on redacting passwords and secrets.
#31 will cover the use case of sending lines to an LLM that can be refined in a scratch buffer.