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

Use :Neural on visually selected words #17

Closed
ckangnz opened this issue Feb 15, 2023 · 5 comments
Closed

Use :Neural on visually selected words #17

ckangnz opened this issue Feb 15, 2023 · 5 comments

Comments

@ckangnz
Copy link

ckangnz commented Feb 15, 2023

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?

@w0rp
Copy link
Member

w0rp commented Feb 15, 2023

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.

@Konfekt
Copy link

Konfekt commented Feb 17, 2023

A natural use would be asking ChatGPT to expand a visually selected comment, say describing a function, into the actual code (template).

@w0rp
Copy link
Member

w0rp commented Feb 19, 2023

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.

@Konfekt
Copy link

Konfekt commented Feb 19, 2023

In the meanwhile, a mapping such as nnoremap <leader>n :<c-u>Neural <c-r>* would do.

@w0rp
Copy link
Member

w0rp commented Sep 22, 2023

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.

@w0rp w0rp closed this as completed Sep 22, 2023
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

3 participants