Skip to content

pingqLIN/NppAIAssistant

Repository files navigation

NppAIAssistant
A lightweight AI assistant plugin for Notepad++

Release Downloads Platform Notepad++ License Plugins Admin PR

繁體中文


Visible prompts, modular single-turn profiles, and no hidden memory between requests.

This repository is focused on the plugin itself. It does not carry the full Notepad++ source history, which keeps the project easier to publish, review, package, and release.

Table of Contents

Why It Stands Out

Feature Description
Lightweight Ships as a standard Notepad++ plugin with no core fork
Prompt visibility Live preview of the exact prompt structure in settings
No hidden memory Single-turn conversations with no cross-request context
Dynamic models Model list loads after provider login or API key setup
Safer secret storage Provider secrets now live in local DPAPI storage with legacy migration
Context menu Practical right-click actions for editing workflows
Bilingual UI English and Traditional Chinese support

Security and Settings Storage

  • API keys and OAuth tokens are stored in %LocalAppData%\Notepad++\AIAssistant.
  • Secret values are protected with Windows DPAPI.
  • Non-secret preferences are stored separately in %AppData%\Notepad++\plugins\config\NppAIAssistant.ini.
  • Legacy roaming secure blobs are migrated automatically on first launch of the updated build.
  • Gemini requests now authenticate with the x-goog-api-key header instead of query-string API keys.

Screenshots

Settings dialog

Prompt preview
See the exact prompt being built as you adjust presets and output rules
Preset-driven prompt builder
Switch presets to quickly configure scenario modules and parameters
Prompt Preview Preset Dropdown

Context menu actions

Trigger explanation, refactoring, comments, and fixes directly from the editor.

Context Menu Actions

Build

Visual Studio / MSBuild
& "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\MSBuild.exe" `
    "NppAIAssistant.vcxproj" /p:Configuration=Release /p:Platform=x64 /m
CMake
cmake -S . -B build
cmake --build build --config Release

Expected output: build/x64/Release/plugins/NppAIAssistant/NppAIAssistant.dll

Install

Copy the built DLL to:

<Notepad++>\plugins\NppAIAssistant\NppAIAssistant.dll

Or run the install script:

scripts/install-npp-ai-plugin.ps1

Repository Layout

NppAIAssistant/
├── src/                  # Plugin source, resources, version info
│   └── shared/           # HTTP, provider API, secure and plain settings storage
├── vendor/
│   ├── notepadpp/        # Vendored plugin & docking headers
│   └── scintilla/include # Scintilla headers for the plugin interface
├── docs/                 # Usage guides, release notes, submission docs
└── scripts/              # Install and package helpers

See also:

Release and Plugins Admin

Item Path
Packaging script scripts/package-npp-ai-plugin.ps1
Metadata plugin-admin-metadata.json
Submission guide docs/PLUGIN_ADMIN_SUBMISSION.md

Recommended release config:

  • GitHub release tag: v0.1.0
  • Plugin version: 0.1.0.0
  • Release asset: NppAIAssistant-0.1.0.0-x64.zip

GPL-3.0 · GitHub

About

Lightweight AI assistant plugin for Notepad++ with visible prompts and single-turn behavior

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors