[New Plugin] NppOpenAI
-
I’ve created a small plugin for Notepad++ to communicate with the popular OpenAI (aka. ChatGPT).
You can simply select a text in Notepad++, press
Ctrl + Shift + O
, and you’ll see the AI generated response, without leaving your favorite code editor.NppOpenAI v0.1.5 is available in N++ v8.5.1 Release Candidate Plugin Admin, however the v0.2 is downloadable as the latest release (will be added soon).
More details at GitHub page: https://github.com/Krazal/nppopenai
Planned updates:
- GUI updates for better UX
- Chat support: NppOpenAI will remember for your last X questions
- DALL-E support: You will be able to create an AI generated image
- Whisper support: You will be able to extract text from an audio file and/or (hopefully…) to “talk” to OpenAI
Disclaimer: I’m neither an OpenAI employee, nor C++ developer (officially I’m a full stack PHP developer). However, this plugin requires an active internet connection and an OpenAI registration / API key.
Thank you for any feedbacks!
-
Nice one. Maybe a useful feature would be to query OpenAI to upload and optimise the the currently selected text code. Another query could be to debug the currently selected text code. Or also, indent/comment the selected code. Maybe some settings to change those default prompt / reset to default the prompts.
-
Perhaps not a critically important point, but the demo shown is something you can do with Notepad++ without an AI plugin:
Results in:
-
@Alan-Kilborn I am getting odd results when I try to reproduce what you demonstrated.
I have
What is "Loren Ipsum"?
selected within npp and then doEdit / On Selection / Search On Internet
. For me “nothing happened.” If I remove the double quotes to instead haveWhat is Loren Ipsum?
selected then it works for me and a new-tab shows up in Firefox forhttps://www.google.com/search?q=What%20is%20Loren%20Ipsum?
I’m running v8.5.3 portable to test/verify this but see the same behavior with the handling of double quotes in the selected text for older versions.I added a comment to https://github.com/notepad-plus-plus/notepad-plus-plus/issues/9795 to document the behavior on my machine when there are double quotes in the selected text but from your screen shots they work on your machine.