Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    [New Plugin] NppOpenAI

    Plugin Development
    4
    4
    521
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Richárd Stockinger
      Richárd Stockinger last edited by

      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!

      nppopenai_01.png nppopenai_02.png

      1 Reply Last reply Reply Quote 5
      • Chr Pqe
        Chr Pqe last edited by Chr Pqe

        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.

        1 Reply Last reply Reply Quote 0
        • Alan Kilborn
          Alan Kilborn last edited by

          Perhaps not a critically important point, but the demo shown is something you can do with Notepad++ without an AI plugin:

          c5a76692-6de6-4ea7-8c3c-fe22a73cd6bd-image.png

          Results in:

          92a7f3b9-b198-4e0e-9aee-c163c8e2a3ae-image.png

          1 Reply Last reply Reply Quote 2
          • mkupper
            mkupper last edited by

            @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 do Edit / On Selection / Search On Internet. For me “nothing happened.” If I remove the double quotes to instead have What is Loren Ipsum? selected then it works for me and a new-tab shows up in Firefox for https://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.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright © 2014 NodeBB Forums | Contributors