The first code editor built for the AI era.
C++ + Rust · ~13 MB bare native executable · Zero Electron · 238 file types · 82 language lexers · Local AI formatters · MCP server
MCP: notepatra-mcp now ships a prebuilt signed Windows sidecar and a one-click Claude Desktop bundle — connect Claude Desktop, Claude Code, OpenAI Codex, and any MCP client to the running editor. 49 tools (Git, read-only SQL, saved-connection queries, charts, Noter notes); every write human-approved in-window; nothing leaves your machine.
Website ·
Download ·
MCP ·
Features ·
The Story ·
Install ·
Plugins ·
AI ·
Contributing ·
Security ·
Changelog
The Story
I'm Prateek Singh. A developer who spent years on Linux wanting a small, fast, free native code editor that could fix things in seconds — broken JSON, messy SQL, tangled HTML — and finding only Wine hacks or bloated Electron editors eating 500 MB of RAM to show a text file.
Every text editor told me to pick two of three: fast, powerful, native. Vim is fast and native but cryptic. Modern Electron editors are powerful but heavy. The truly tiny native ones either don't have AI or don't run cross-platform.
So I built Notepatra.
Not a port. Not a wrapper. Something new — for everyone.
I asked: what would a small native code editor look like if it was built today, in 2026, when AI is part of every developer's workflow, and ran natively on Linux + macOS + Windows from one codebase?
The answer: a tiny native executable — ~13 MB bare (~13.4 MB on Linux x64) on every platform — with a Rust-powered core, Scintilla editing engine, and local-first AI integration (cloud backends optional). v0.1.129 downloads: 4.7 MB Linux x64 (tarball, Qt from the system), 28.0 MB on macOS (DMG with bundled Qt), 32.8–43.9 MB on Windows (MSI/zip/setup.exe with bundled Qt DLLs). An editor that can fix your broken JSON with regex in milliseconds — and when regex isn't enough, it asks your AI to figure it out — local by default, six cloud backends one click away when you want a frontier model. No telemetry. No subscription. No mandatory API key.
Notepatra started on Linux — because that's where the gap was. But great tools shouldn't have borders. Notepatra runs on Linux, Windows, and macOS. Same codebase. Same features. No one gets left behind.
Notepatra is what I wish had existed — on every platform.
Features
Editor — Battle-tested basics done right
- 238 file extensions mapped to 82 language lexers — Python, C/C++, C#, Java, Kotlin, JavaScript, TypeScript, Rust, Go, Swift, Dart, Solidity, Zig, Vala, Hack, Julia, R, Protobuf, F#, HCL/Terraform, Thrift, GraphQL, GDScript, Nim, Cython, Mojo, Crystal, Elixir, Scala, Groovy, Apex, SQL (6 dialect presets), HTML, CSS, JSON, JSON5, YAML, TOML, Markdown, Bash, Fish, Nushell, Fortran, VHDL, Verilog, MATLAB, LaTeX, BibTeX, Jinja, Liquid, Twig, Dockerfile, DotEnv, Gitignore, and more. Rust / Go / Swift / Kotlin / TypeScript / PowerShell ship as Notepatra-local lexers (not just C-family fallbacks)
- Tabbed editing — drag, reorder, middle-click close, double-click empty area for new tab
- Tab right-click menu — Close, Close All BUT This, Close All to the Left/Right, Close All, Save, Save As, Rename, Copy Full Path, Copy Filename, Copy Directory Path, Open Containing Folder, Open Terminal Here, Read-Only toggle, Color Tag (7 named colors + custom + Remove)
- 3 themes — Light, Dark, Monokai (Settings > Theme)
- Session persistence — close Notepatra, reopen tomorrow, same files, same cursor positions, same window size
- Crash recovery — if Notepatra crashes (it shouldn't, but life happens), your unsaved work is recovered on next launch
- File change detection — someone else edits your file? Notepatra asks: reload or keep yours?
- 2 GB file support — memory-mapped I/O via Rust; files up to ~1.86 GB load fully, larger open truncated + read-only
- Double-click word highlight — double-click any word, all occurrences light up in orange
- Ctrl+B brace matching — jump between matching
{} [] (), highlights both braces + selects everything between
- Macro recording — Start Recording (Ctrl+Shift+M), Stop, Playback (Ctrl+Shift+P), Run Multiple Times, Save/Load macros
- Code folding, bookmarks, auto-complete, indent guides, line numbers
- Custom scrollbars — clean, modern, rounded
Search — Find anything, anywhere
- Project Search (
Ctrl+Shift+G) — recursive search across file names AND file contents in any text-based file. Any size, any language (Python, SQL, C/C++, JS/TS, Rust, Go, HTML, JSON, YAML, Markdown, logs, config). Streams line-by-line so a 2 GB log searches the same as a 2 KB script. Each match shows exact line:col coordinates — double-click to jump the caret to the character.
- 5-tab Find/Replace dialog — Find, Replace, Find in Files, Mark, Go to
- 3 search modes — Normal, Extended (
\n, \r, \t, \xNN), Regular expression
- Find All in Current Document — results appear in bottom panel, double-click any result to jump to that exact line
- Find All in All Opened Documents — search across every open tab at once
- Replace All in All Opened Documents — one click, every file updated
- Find in Files — search entire directories recursively with file filters
- Mark All — highlight every occurrence with visual indicators
- Aho-Corasick search engine (Rust) — faster than regex for literal patterns
Plugins — The real power
Every plugin opens in its own tab. Real UI, not just a menu click.
| Button | What it does |
|---|
| Format | Pretty-print with preserved key order |
| Minify | Compact to one line |
| Fix + Format | Rust-powered auto-repair: fixes missing braces, trailing commas, single quotes, unquoted keys, missing { after [ — shows detailed report of every fix |
| AI Fix (Ollama) | Sends truly broken JSON to your local AI — fixes what regex can't |
| Button | What it does |
|---|
| Format (2/4 spaces) | Proper HTML indentation |
| Minify | Strip all whitespace |
| Fix + Format | Auto-close unclosed tags, detect missing closers, report issues |
| AI Fix (Ollama) | AI repairs broken nesting, malformed tags, missing attributes |
| Button | What it does |
|---|
| Check | Detailed report: line numbers of every mismatched () [] {}, keyword mismatches (begin/end, if/fi) |
| Auto-Fix | Adds missing closers in correct nesting order |
| AI Fix (Ollama) | AI understands your code structure and fixes all bracket issues |
- Format with UPPERCASE or lowercase keywords
- Configurable indent width
- Supports T-SQL, PL/SQL, MySQL, PostgreSQL, SQLite
Compare / Diff (inbuilt)
- Pick any two tabs or any tab vs file on disk
- Side-by-side Scintilla editors with a ComparePlus-style overview/nav bar
+ green for added, - red for deleted, # amber for changed
- Word-level LCS intra-line diff — within a changed line, the specific
tokens that were removed are highlighted in red on the left pane; the
tokens that were added are highlighted in green on the right pane. Works
on actual word boundaries, not just common-prefix/suffix.
- Dark-mode aware — colours track your Notepatra theme (Light / Dark /
Monokai) so diffs stay readable on both black and white backgrounds.
- Prev/Next diff navigation, inline overview-bar jump
- Ignore whitespace, ignore case, ignore empty lines checkboxes
- Unlock for editing mode — edit either pane and re-diff in place
- Powered by Rust Myers diff (line-level) + C++ LCS (word-level)
- Visual UX inspired by ComparePlus by Pavel Nedev — credit where credit is due.
Git Integration (inbuilt)
- Staged / Unstaged trees — porcelain v2 parser, inline
+ / − buttons per row to stage/unstage
- Branch chip with ahead/behind — shows
main ↑3 ↓1 when diverged
- Commit box (Ctrl+Enter) — line-count indicator, blocks commit when nothing's staged
- Sync row — one-click Pull / Push / Fetch with live ahead/behind refresh
- Collapsible history + stash menu — recent commits expandable; stash / pop / list / drop
- Git gutter — green/yellow/red markers in editor margin for changed lines
AI Powered — local-first, cloud-optional
Backend dropdown ships 6 entries — Ollama (local default · localhost:11434), llama.cpp (GGUF) (local · localhost:8080), OpenRouter (cloud · 100+ models), Ollama Cloud (cloud · gpt-oss:120b / qwen3-coder:480b / deepseek-v3.1:671b), OpenAI (cloud · GPT-4o / GPT-5 / o-series), Azure OpenAI (enterprise). Per-provider key slots — no cross-provider bleed. The llama.cpp entry also accepts a user-configured base URL via Settings → Preferences → AI, so you can route it to any OpenAI-compatible HTTP server you have installed separately. Local backends keep code on your machine; cloud backends are opt-in. No telemetry. No subscription. No mandatory API key.
AI Assistant — side-dock (Ctrl+Shift+A)
The AI chat lives in a persistent right-side dock, not an editor tab. One conversation, preserved across tab switches. Tick Coding Mode to open the 3-column coding layout (file tree · editor · AI chat) 3-pane layout.
Workspace awareness. Every prompt carries:
- the selection (or full file if no selection is active)
- the full text of the current file
- excerpts of every other open editor tab
- a flat listing of all files under the workspace root (
.git, node_modules, target, dist, etc. filtered out)
So the model can reason about files you haven't opened yet — "import from utils.py" works even when utils.py isn't in a tab. Budget-capped so small local models (3B, 4K–8K context) don't overflow.
One-click actions (hidden by default, click "▸ Quick actions" to reveal):
Explain · Find Bugs · Refactor · Write Tests · Add Comments · Generate Docs · Optimize · Translate. Or type a custom prompt. Responses stream in, each has a Copy link, and the last response can be inserted at the cursor or replace the selection with one click.
Speech-to-text — optional mic button, uses local arecord + whisper CLI when installed. No audio ever leaves the machine.
AI Setup
curl -fsSL https://ollama.com/install.sh | sh
ollama pull qwen2.5-coder:3b
ollama serve
Notepatra auto-detects the running Ollama and picks the most CPU-friendly model installed. For llama.cpp / OpenRouter / Ollama Cloud / OpenAI / Azure OpenAI, pick the backend from the dropdown at the top of the AI panel; base URL and API key are editable inline. The llama.cpp entry also accepts a user-configured base URL via Settings → Preferences → AI, so you can route it to any OpenAI-compatible HTTP server you have installed separately.
A generator built into the binary, opened from the Password button on the Built-in Tools toolbar (third, immediately after AI) — press it again while the tab is focused and the tab closes. A left rail switches between three pages: Password, Passphrase and SSH key (Alt+1 / Alt+2 / Alt+3). It ships in every build, including the default Lite binary and works fully offline: no network, no download, no backend, no AI.
- Password — random characters, 4–256 (default 20) from a-z / A-Z / 0-9 / a 27-character symbol set, plus a free-text field for any extra characters you want, with optional exclude look-alikes (drops
0 O 1 l I) and at least one from each set (on by default). The symbol set deliberately omits the quotes, backslash, backtick, pipe and space — the characters that break a password pasted into a shell command, a YAML file or a database connection string.
- Passphrase — 3–24 words (default 6) from a 2,048-word list compiled into the binary (no dictionary file is read at runtime), so each word is worth exactly 11 bits and six words is 66 bits; pick a hyphen / period / underscore / space / no separator, optionally capitalise each word or append two digits. Both text modes generate 1 to 100 independent values at once, with Generate · Copy · Insert into editor · Open in new tab.
- SSH key — a real OpenSSH key pair, generated locally: Ed25519 (recommended), ECDSA P-256 / P-384, RSA 3072 / 4096, and RSA 2048 marked legacy. An optional passphrase encrypts the private key with
aes256-ctr + bcrypt-pbkdf, the same construction ssh-keygen uses. The comment field is empty by default, on purpose: ssh-keygen defaults it to user@host, which copies your username and machine name into every authorized_keys file the key is ever pasted into. The public line and its SHA256 fingerprint are shown immediately; the private key stays hidden until you tick Show private key. Save private key… creates the file, sets it to 0600, then writes it, refuses to overwrite an existing file, and writes the .pub companion (0644) beside it. Generation runs off the GUI thread, so the window stays responsive while RSA-4096 takes its 1.6–5.9 s. Interoperability is checked against the system ssh-keygen in the test suite — -y reproduces the public line, -lf the fingerprint, and -y -P opens the encrypted key and rejects the wrong passphrase. The pure-Rust crypto (RustCrypto ssh-key) costs about 0.6 MB of binary.
- The bits number is a count, not a score — it is the base-2 logarithm of how many distinct values your current settings can produce, not a heuristic guess at how complicated the output looks, which is what most meters show. Tick at least one from each set and the figure drops slightly: it is recomputed by inclusion–exclusion over the selected sets, because the guarantee rules out every password that misses a set, so fewer passwords exist. Most generators advertise the unconstrained number while enforcing the constraint, which overstates the result. Default settings read 129 bits.
- Real randomness, and nothing kept — every draw comes from the OS random source (
getrandom on Linux, the platform equivalent elsewhere) through the Rust core. Qt's QRandomGenerator::system() is now only the fallback, not the source — it was the source before v0.1.129, and on x86-64 that meant the CPU's RDRAND instruction first, which is a different provenance than most readers assume. SSH keys come from the same OS source. Draws use rejection sampling so no character is favoured just because the alphabet size doesn't divide 2^32, and the set guarantee is enforced by drawing again until it holds, not by placing one character per set and shuffling — placement would make some strings likelier than others and turn the bits figure into a lie. The panel is a plain widget rather than an editor, and session save/restore, the AI-context sweep and the MCP read verbs are all gated on the tab being an editor, so a generated value never lands in session.json, never reaches an AI backend, and is not readable by a connected MCP client. Copy takes the value back off the clipboard after 30 seconds — but only if the clipboard still holds it, so it never clobbers something you copied since. The 30-second wipe arms for the private key only, never for the public line. Nothing is written to disk unless you choose Save private key….
👁 AI Interaction Log — see exactly what your AI did (Features → AI Interaction Log…)
Total transparency, on by default. Every request and response to any AI backend — local (Ollama / llama.cpp) or cloud (OpenRouter / OpenAI / Azure / Ollama Cloud), including Noter's Extract — is written to a local SQLite log you can open and read: timestamp, backend, model, mode, full prompt + full response, token counts, latency. It never leaves your machine (zero network egress), entries auto-prune after 7 days, and a built-in credential scrubber masks API keys / bearer tokens / PEM private keys before anything is stored. The viewer has backend/model/mode filters, Export JSON, Prune now, and a one-click opt-out toggle. You are never guessing what got sent to a model — you can audit every byte. Privacy as transparency, not as a promise.
📝 Noter — meeting notes that turn into reminders (Ctrl+Alt+N)
A local-first, two-pane meeting workspace (notes list · editor) — no accounts, no bots; notes live under ~/Documents/Notepatra/Noter/.
- Write fast — a top toolbar drops in Action Items / What I plan / To-dos headers and checkbox bullets; check a line to strike it through.
- Extract (
Ctrl+Alt+E) runs your AI backend over the note and returns a summary plus action items / decisions / questions / risks. A task that mentions a time ("ship the build 10am tomorrow") comes back with that date/time pre-filled.
- Reminders — set one on a note (right-click) or schedule action items straight from Extract; they all collect in a central Reminders list grouped Overdue / Today / This week / Later, with desktop notifications at the due time while Notepatra is running (missed ones arrive as one summary at next launch). Click to open the note, pencil to reschedule, ✕ to delete. Re-running Extract flags what's already scheduled so you never pile up duplicates.
📐 Diagram tool — flow / ER / system diagrams from text (.npd)
A first-class diagramming surface that renders in the default binary on every platform (incl. macOS Apple Silicon and the Windows installer — native Qt renderer, no WebEngine), opened from the toolbar next to Noter. The tiny .npd text DSL is the source of truth; the canvas is a live projection of it (so undo/redo and version control just work).
- Create three ways — AI Generate describes it in plain English and a local model writes the
.npd, shown in a review pane before it touches the canvas (undo/redo after); or start from a Flow / ER / System template; or write .npd directly. Import Mermaid converts an existing flowchart, now mapping -.-> to a dashed edge and subgraph … end to a group.
- Why not just Mermaid? — Mermaid needs a browser or JS runtime;
.npd renders natively, offline, in the Lite binary, with AI Generate, node-pinned notes, legends, built-in icons, theme-following palettes, and an export_diagram MCP tool. Mermaid still wins on diagram types (sequence, class, Gantt) and on GitHub rendering it inline — the full comparison is in the docs.
- Drawn flat, like an engineering diagram — no gradients, no drop shadows: a 1.5 px border, the app's own font, and a tighter grid. Two light palettes ship —
paper and slate — alongside the older dark ones (clay / ocean / forest / mono / default), and the new default palette auto follows the app theme: light theme → paper, dark theme → default.
- Rich visuals — 5 shapes (pill / box / decision diamond / database cylinder / icon), ~55 hand-drawn icons (~150 aliases) for system / ER / flowchart, directed + labelled + bidirectional arrows, dashed edges (
a -.-> b, a <.-> b) for the async / optional / best-effort hop, label-overflow→hover, infinite pan/zoom canvas. A per-node colour renders as a tint on a light palette (soft wash, full-strength border, normal dark text) and as a solid fill with auto-contrast text on a dark one.
- Say what a picture can't —
direction LR lays the diagram out left-to-right (TB is the default), group "Edge tier" : cdn api draws a labelled container behind those nodes, note api "Rate-limited to 100 rps" pins a small card beside one, and legend dashed "async" / legend #cc785c "hot path" build a legend box (which appears only if you write at least one legend line). group, note, legend, direction and layout are now reserved words — an existing file that uses one as a node id needs the id renamed.
- Export — PNG / JPEG / PDF on every build, plus SVG / HTML where the Qt Svg module is present and WebP where the Qt WebP image plugin is present (the menu shows exactly what your build supports). A Help button has the full cheat-sheet;
samples/diagram_showcase.npd shows every element; the npd_render CLI renders any .npd to an image headless.
More Features
| Feature | Shortcut |
|---|
| Built-in Terminal | `Ctrl+`` — opens as a tab, runs real commands |
| REST Client | Ctrl+Shift+R — send HTTP requests, see responses with pretty JSON |
| Hex Editor | View > Hex Editor — color-coded hex dump of any binary file |
| Markdown Converter | Features > Markdown — convert selection to table, list, code block, bold, link, heading, or strip HTML to markdown |
| File Explorer | Ctrl+Shift+E — tree view sidebar |
| Function List | View > Function List — lists all functions/classes, double-click to navigate |
| Preferences | Settings > Preferences — 6 tabs of configuration |
| Password Generator | Tools > Password Generator — Passwords / Passphrases / SSH keys — random characters, a 2,048-word passphrase, or an OpenSSH key pair (Ed25519 / ECDSA / RSA); the bits readout is the exact number of values the settings can produce |
Keyboard Shortcuts
| Category | Shortcut | Action |
|---|
| File | Ctrl+N | New |
| Ctrl+O | Open |
| Ctrl+S | Save |
| Ctrl+W | Close tab |
| Edit | Ctrl+D | Duplicate line |
| Ctrl+Shift+K | Delete line |
| Ctrl+/ | Toggle comment |
| Ctrl+Shift+U | UPPERCASE |
| Ctrl+U | lowercase |
| Search | Ctrl+F | Find |
| Ctrl+H | Replace |
| Ctrl+Shift+G | Project Search (folder-wide names + contents) |
| F3 / Shift+F3 | Find Next / Previous |
| Ctrl+G | Go to line |
| Ctrl+B | Go to matching brace |
| Ctrl+F2 / F2 | Toggle / Next bookmark |
| View | F11 | Full screen |
| Ctrl+= / Ctrl+- | Zoom in / out |
| Alt+0 | Fold all |
| Macro | Ctrl+Shift+M | Start recording |
| Ctrl+Shift+T | Stop recording |
| Ctrl+Shift+P | Playback |
| Features | `Ctrl+`` | Terminal |
| Ctrl+Shift+A | AI Assistant |
| Ctrl+Shift+E | File Explorer |
| Tabs | Ctrl+Tab | Next tab |
| Middle-click | Close tab |
| Double-click empty | New tab |
AI assistants (MCP) — new in v0.1.118
From v0.1.118, Notepatra ships notepatra-mcp — a stdio JSON-RPC 2.0 Model Context Protocol server that connects external AI assistants (Claude Desktop, Claude Code, OpenAI Codex, the OpenAI Agents SDK, and any spec-compliant MCP client) to the running editor over a local socket. Nothing leaves your machine: stdio to the client, local socket to the editor, no network connections.
49 tools in three tiers:
| Tier | Tools | Gate |
|---|
| Read (24) | tabs, selection, status, recent files, in-tab + project search, Noter notes, reminders, read-only Git (status / diff / log / show / branch), .npd validation, read-only SQL (run_sql), language list (list_languages), capability probe (get_capabilities), .npd source read (get_diagram_source), saved connections (list_connections / run_query / list_tables) | None — observation only |
| Act (13) | open file, new tab, go to line, set language, compare tabs, format JSON/SQL/HTML, open note, create diagram, open Noter, open Data Analyst (open_data_analyst), render chart (render_chart) | None — visible, non-destructive |
| Write (11) | insert text, replace selection, find-and-replace, save, create note, append note, set reminder, export diagram, set diagram source, export query results (export_query_results), export chart (export_chart) | Approve/Deny card inside the editor — 120 s auto-deny, FIFO one card at a time, no headless bypass |
find_in_tab and search_project also take an optional regex flag. run_sql is SELECT-only (rejected by the SQL classifier otherwise) and, on the Full/DuckDB edition, runs in an engine sandbox — the target file is materialized into an in-memory table, then DuckDB's external filesystem access is disabled (enable_external_access=false) before the untrusted query runs, so it cannot read host files. Since v0.1.119 the sidecar also supports Windows over a named pipe.
Hook it up in one line each (from v0.1.118):
claude mcp add notepatra -- notepatra-mcp --socket
[mcp_servers.notepatra]
command = "notepatra-mcp"
args = ["--socket"]
Full tool reference, Claude Desktop / Agents SDK snippets, security model, and honest limitations (editor must be running; prebuilt Windows sidecar zip + one-click .mcpb bundle ship from the next release — until then Windows uses cargo install notepatra-mcp; cloud-only connector surfaces can't reach a desktop editor): docs/mcp.html / notepatra.org/mcp.html.
Architecture
┌──────────────────────────────────────────────┐
│ C++ Layer (Qt5 + QScintilla) │
│ UI · Menus · Tabs · Dialogs · Editor │
│ Terminal · AI Panel · Compare · Plugins │
├──────────────────────────────────────────────┤
│ C FFI boundary │
├──────────────────────────────────────────────┤
│ Rust Core Library │
│ File I/O (mmap) · Search (Aho-Corasick) │
│ Diff (Myers) · JSON/HTML/SQL Formatters │
│ Bracket Fixer · Hash · Base64 · Encoding │
└──────────────────────────────────────────────┘
Why this hybrid?
- C++ because Qt and QScintilla are C++ — zero friction for UI
- Rust because file I/O, text processing, and parsing must never crash — Rust's ownership system guarantees memory safety
- Result: the speed of C++, the safety of Rust. The bare executable is ~13 MB on every platform (~13.4 MB Linux x64, similar on macOS / Windows). Latest v0.1.129 download sizes: 4.7 MB Linux x64 tar.gz · 4.4 MB Linux ARM64 tar.gz · 28.0 MB macOS DMG (with bundled Qt) · 43.9 MB Windows MSI · 33.0 MB Windows NSIS · 37.8 MB Windows portable zip. Installed footprint on Windows is ~75-85 MB after the MSI extracts bundled Qt + QScintilla DLLs — normal for any Qt-based installer.
Install
One-command install
Linux / macOS:
curl -fsSL https://notepatra.org/install.sh | sh
Windows (PowerShell):
irm https://notepatra.org/install.ps1 | iex
That's it. Auto-detects your OS, downloads the right binary, installs it, adds to PATH, creates shortcuts.
| Platform | Download | Size | What's inside |
|---|
| 🐧 Linux x64 | .tar.gz | 4.7 MB | Bare notepatra binary. Qt5 from your distro. |
| 🐧 Linux ARM64 | .tar.gz | 4.4 MB | Bare notepatra binary for aarch64 / ARM64 Linux. |
| 🍎 macOS Apple Silicon (M1–M4) | .dmg | 28.0 MB | Notepatra.app with Qt frameworks bundled. Drag to Applications. |
| 🪟 Windows x64 (MSI) | .msi | 43.9 MB | WiX-built MSI. Per-machine install, upgrade-code handled, file-type associations for .txt, .log, .md, .json, .py, .cpp etc., adds Notepatra to PATH. Best for enterprise / SCCM deploy. |
| 🪟 Windows x64 (installer) | .exe | 33.0 MB | NSIS installer. Registers in Settings → Apps → Installed apps. Uninstall via Control Panel works. |
| 🪟 Windows x64 (portable) | .zip | 37.8 MB | notepatra.exe + Qt DLLs + QScintilla DLL. Unzip and run anywhere. No installer, no registry. Optional: double-click register-associations.bat inside the zip to add Notepatra to the "Open with" menu for .txt/.md/.py/.json/etc. — HKCU only, no admin needed. Undo with unregister-associations.bat. |
⚠ Download size vs. installed size are different. The numbers above are download sizes — the .msi / .dmg / .tar.gz files you grab from GitHub Releases. After install, the on-disk footprint is larger because the installer extracts the bundled Qt DLLs, QScintilla DLL, and Rust core library out of the compressed payload. Typical installed size on Windows: ~75-85 MB. Linux installs are still tiny (~13 MB on disk) because Qt5 comes from your distro repo, not the tarball. macOS Notepatra.app on disk is ~50-60 MB after xattr removal.
Lite vs Full. The downloads above are the default Lite build. Each release also ships an opt-in Full variant (-full) that bundles the DuckDB query engine on every platform — plus, on Linux and Windows, the QtWebEngine inline Vega-Lite chart renderer (the generate_chart tool). macOS Full is DuckDB-only: Homebrew qt@5 no longer ships QtWebEngine and there is no Apple-Silicon Qt5 WebEngine, so inline Vega charts are a Linux/Windows Full feature. The native fenced ```chart (QtCharts) renderer and the .npd diagram tool work on every platform in both flavors.
Why are the download sizes different? Bare notepatra executable is ~13 MB on each platform (~13.4 MB Linux x64 — slightly smaller on Windows/macOS than on Linux because clang + MSVC emit denser code than gcc). On Linux, Qt5 is a standard system package (apt install qtbase5-dev libqscintilla2-qt5-dev), so the download is just the binary (~4.7 MB compressed). On macOS and Windows, Qt isn't pre-installed, so we bundle the Qt frameworks / DLLs alongside the executable for portability — same approach Krita, Kdenlive, and every cross-platform Qt app uses. Even with Qt bundled, Notepatra installs at ~12–85 MB depending on platform vs 300+ MB for VS Code.
macOS Intel: not shipped pre-built. Apple stopped selling Intel Macs in 2023 and the GitHub Actions macos-13 runner has been unreliable. Intel Mac users — git clone and run ./build.sh. Builds in ~3 minutes.
Admin / Fleet install — for IT, DevOps, and regulated teams
For one-time-install-then-every-user-sees-it on a shared machine, or silent push to a fleet via SCCM / Jamf / Ansible / Salt, every supported platform has a per-machine artefact:
| OS | Artefact | Silent admin install |
|---|
| 🪟 Windows | notepatra-x.x.x.msi | msiexec /i notepatra-0.1.129.msi /quiet — installs to C:\Program Files\Notepatra\, adds system PATH, registers HKCR file associations, all-users Start Menu. WiX-built, MajorUpgrade-aware, SCCM-friendly. |
| 🍎 macOS | Notepatra.dmg | Mount + sudo cp -R "/Volumes/Notepatra/Notepatra.app" /Applications/ from a deployment script. Or open the DMG manually and drag to /Applications (admin password). Notarised + stapled. |
| 🐧 Debian / Ubuntu / Mint / Pop!_OS (x64 + ARM64) | notepatra_0.1.129_amd64.deb | sudo apt install ./notepatra_0.1.129_amd64.deb — installs to /opt/notepatra/ + symlink at /usr/bin/notepatra, hicolor icons, .desktop registration. ARM64: replace amd64 → arm64. |
| 🐧 Fedora / RHEL / CentOS Stream / Rocky / Alma (x64 + ARM64) | notepatra-0.1.129-1.x86_64.rpm | sudo dnf install ./notepatra-0.1.129-1.x86_64.rpm — same layout as the .deb. ARM64: replace x86_64 → aarch64. Bundles QScintilla 2.14.1 alongside the binary because Fedora ships an incompatible packaging. |
| 🐧 Arch / openSUSE Tumbleweed / Manjaro / EndeavourOS / other glibc 2.38+ | Notepatra-0.1.129-x86_64.AppImage | chmod +x Notepatra-0.1.129-x86_64.AppImage && sudo cp Notepatra-0.1.129-x86_64.AppImage /opt/notepatra.AppImage && sudo ln -s /opt/notepatra.AppImage /usr/local/bin/notepatra. Requires glibc 2.38+ (Ubuntu 24.04+, Fedora 40+, Arch, Tumbleweed). Older distros: use the .deb / .rpm. |
All artefacts ship with cosign .sig + .pem for keyless Sigstore verification and SLSA build provenance. See Verify your download below.
🔒 notepatra-local-ai — cloud-free build for regulated environments
For teams that can't or won't send code to public LLM endpoints — regulated industries (finance, healthcare, legal, gov), data-sovereignty regions (EU GDPR, India RBI, China), air-gapped networks, or anyone who wants by-construction privacy — there's a dedicated cloud-free build, available for Linux and Windows:
The binary physically cannot reach api.openai.com, api.anthropic.com, openrouter.ai, api.mistral.ai, generativelanguage.googleapis.com, or any other public LLM endpoint. Every QNetworkAccessManager request goes through an allowlist that only accepts:
localhost / 127.0.0.1 / [::1]
- RFC1918 (
10.x, 172.16-31.x, 192.168.x)
- CGNAT range (
100.64.0.0/10 — covers Tailscale, corp VPN)
- IPv6 unique-local (
fc00::/7)
- DNS suffixes
.local, .lan, .internal, .intranet, .corp, .home
Local Ollama, local llama.cpp, self-hosted Ollama on the LAN, and any other OpenAI-compatible server you have installed locally or on your private network — all continue to work in the cloud-free build. Only public-cloud LLM endpoints are blocked. The cloud-URL paste box is stripped from the UI as well, so users can't even type a public host. Auditors can confirm by running strings notepatra | grep -c openai.com — zero hits.
On Linux the two flavors share the same notepatra binary name on disk; apt Conflicts ensures only one of notepatra / notepatra-local-ai is installed at a time, swap transactionally with sudo apt install ./notepatra-local-ai_0.1.129_amd64.deb. On Windows the two MSIs are independent products (different UpgradeCode + ProductName + install dir) so they can coexist if needed; admins typically push one or the other based on policy. notepatra --version self-identifies the build by name — only the bare lite build carries an edition suffix: Notepatra Lite v0.1.129 for the lite build and Notepatra v0.1.129 for the full build (DuckDB bundled), plus Notepatra Local AI Lite v0.1.129 / Notepatra Local AI v0.1.129 for the cloud-free (local-ai) builds; the same name shows in the window title bar and the About dialog.
Verify your download
Every release ships with SHA-256 checksums, Sigstore (cosign) signatures, and SLSA build provenance. The install.sh and install.ps1 scripts above already verify SHA-256 automatically and refuse to install on mismatch — but if you downloaded manually you should verify yourself.
curl -sL -O https://github.com/singhpratech/notepatra/releases/latest/download/SHA256SUMS
sha256sum -c SHA256SUMS --ignore-missing
cosign verify-blob \
--certificate-identity-regexp '^https://github.com/singhpratech/notepatra/' \
--certificate-oidc-issuer 'https://token.actions.githubusercontent.com' \
--certificate notepatra-linux-x64.tar.gz.pem \
--signature notepatra-linux-x64.tar.gz.sig \
notepatra-linux-x64.tar.gz
gh attestation verify notepatra-linux-x64.tar.gz --owner singhpratech
Full instructions, threat model, and disclosure policy in SECURITY.md.
Stay up to date — safe in-app updater
Notepatra checks github.com/singhpratech/notepatra/releases/latest on launch (silent on no-match) and pops a "A new version is available" dialog when something newer exists. Click Download and the updater will:
- Pick the right artifact for your OS + architecture — Linux x64 / ARM64 tar.gz, macOS DMG, Windows MSI (with NSIS
.exe and portable .zip as fallbacks).
- Stream-download it to
~/Downloads/*.part with a cancellable progress dialog.
- Fetch the release's
SHA256SUMS and verify the download's hash. If the hash does not match, the .part file is deleted and you are shown an error — nothing on your system is modified.
- Atomic-rename
.part → final name once verified.
- Hand off to the OS installer —
msiexec /i on Windows, open <dmg> on macOS (Finder drag to Applications), xdg-open on the Downloads folder on Linux so you replace the binary yourself.
Safety contract — the updater will never leave you with a broken install:
| Failure | What happens |
|---|
| No internet | Error dialog, zero disk writes |
| Download cancelled | .part deleted, nothing else touched |
| Power / crash mid-download | .part orphan in ~/Downloads, current binary untouched |
| SHA-256 mismatch | .part deleted, critical dialog shown, current binary untouched |
No SHA256SUMS in release | Refuses to auto-install, opens release page for manual verify |
| No matching platform asset | Refuses to auto-install, opens release page |
| OS installer cancelled or fails | Installer's own rollback — current binary untouched |
The Notepatra process never rewrites or replaces the running binary. Only the OS installer you explicitly clicked through may do that, and those installers all have their own transactional rollback (MSI MajorUpgrade, DMG copy-on-drag, user-driven file-manager swap on Linux).
Check manually: Help → Check for Updates or ? menu. The check is also visible on first launch (silent if up to date).
Windows: refresh "Open with" entry after upgrading from v0.1.23 → v0.1.24
If you upgraded from v0.1.23 or earlier and your right-click → Open with menu still shows Notepatra â€" native code editor (mojibaked text) and/or a red ❌ overlay on the icon, that's Windows shell-cache lag, not a Notepatra bug. Windows' MuiCache permanently caches the FileDescription string the first time it reads an executable's VERSIONINFO, and never re-reads it on upgrade. The new v0.1.24 binary embeds clean ASCII; Windows is just showing the cached old string.
One-time fix — open PowerShell (no admin needed, all changes are HKCU-scoped) and paste this whole block. Tested and confirmed working on Windows 11:
# 1. Wipe Notepatra's stale entries from MuiCache (the cache that has the â€" text)
$mui = "HKCU:\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\MuiCache"
Get-Item $mui | Select-Object -ExpandProperty Property | Where-Object { $_ -match "notepatra" } | ForEach-Object {
Remove-ItemProperty -Path $mui -Name $_ -Force
Write-Host "Cleared MuiCache: $_" -ForegroundColor Green
}
# 2. Wipe stale "Open with" associations pointing to old notepatra.exe paths
Remove-Item "HKCU:\Software\Classes\Applications\notepatra.exe" -Recurse -Force -ErrorAction SilentlyContinue
$exts = @(".txt",".log",".md",".json",".py",".cpp",".js",".html",".css",".xml",".sql",".sh",".yml",".yaml",".ini",".conf",".csv",".rs",".go",".java",".rb",".php",".c",".h",".hpp",".tsx",".ts",".jsx")
foreach ($ext in $exts) {
Remove-Item "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\$ext\OpenWithList" -Recurse -Force -ErrorAction SilentlyContinue
Remove-Item "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\$ext\OpenWithProgids" -Recurse -Force -ErrorAction SilentlyContinue
}
Write-Host "Cleared OpenWithList for $($exts.Count) extensions" -ForegroundColor Green
# 3. Force shell to rebuild association cache
ie4uinit.exe -show
ie4uinit.exe -ClearIconCache
Write-Host "Rebuilt shell cache" -ForegroundColor Green
# 4. Restart Explorer (drops in-memory cache)
Stop-Process -Name explorer -Force
Start-Process explorer
Write-Host "Restarted Explorer — right-click any file now to verify" -ForegroundColor Cyan
What it does — line by line:
| Step | What & why |
|---|
| 1. MuiCache wipe | Clears the per-user cache where Windows stores FileDescription strings shown in "Open with" / File Properties → Details. This is the cache holding the â€" mojibake. |
| 2. Per-extension cache wipe | Removes OpenWithList + OpenWithProgids for 28 common file types. Forces Windows to re-query the .exe's actual VERSIONINFO next time the menu opens. |
3. ie4uinit.exe -show + -ClearIconCache | Built-in Windows tool that rebuilds shell association + icon caches. The red ❌ overlay disappears here. |
| 4. Restart Explorer | Drops the in-memory copy of the cache (the fourth and final layer). Without this, the menu can stay stale until you log out / reboot. |
Verify it worked: right-click any .txt or .json file → Open with → the Notepatra entry should now read Notepatra native code editor for the AI era with a clean icon. If you still see the old text after this, log out and back in (forces every kernel-side cache layer to flush).
New v0.1.24 installs on a clean machine never see this — it only affects upgrades from v0.1.23 or earlier where the mojibaked string was first cached.
Build from source
Linux (Ubuntu/Mint/Debian)
sudo apt install cmake qtbase5-dev libqscintilla2-qt5-dev
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source ~/.cargo/env
git clone https://github.com/singhpratech/notepatra.git
cd notepatra
cd rust-core && cargo build --release && cd ..
mkdir build && cd build && cmake .. && make -j$(nproc)
./notepatra
macOS
brew install qt@5 cmake
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source ~/.cargo/env
git clone https://github.com/singhpratech/notepatra.git
cd notepatra
./build.sh
Windows (MSVC)
Prerequisites
- Visual Studio 2022 with the "Desktop development with C++" workload
- Qt 5.15.2 for
msvc2019_64 — install via Qt Online Installer or aqtinstall
- CMake ≥ 3.16 —
winget install Kitware.CMake or cmake.org/download
- Rust stable — rustup.rs
Build QScintilla via the CMake wrapper (once)
git clone --depth 1 https://github.com/farleyrunkel/QScintilla.git $env:TEMP\qsci-src
cmake -S $env:TEMP\qsci-src -B $env:TEMP\qsci-src\build -G "Visual Studio 17 2022" -A x64 `
-DCMAKE_BUILD_TYPE=Release `
"-DCMAKE_PREFIX_PATH=C:\Qt\5.15.2\msvc2019_64" `
"-DCMAKE_INSTALL_PREFIX=$env:TEMP\qsci-install"
cmake --build $env:TEMP\qsci-src\build --config Release
cmake --install $env:TEMP\qsci-src\build --config Release
Build Notepatra
git clone https://github.com/singhpratech/notepatra.git
cd notepatra
cd rust-core; cargo build --release; cd ..
mkdir build; cd build
cmake .. -G "Visual Studio 17 2022" -A x64 `
"-DCMAKE_PREFIX_PATH=C:\Qt\5.15.2\msvc2019_64" `
"-DQSCINTILLA_INCLUDE=$env:TEMP\qsci-install\include" `
"-DQSCINTILLA_LIB=$env:TEMP\qsci-install\lib\qscintilla2_qt5.lib"
cmake --build . --config Release
Bundle Qt + QScintilla DLLs next to the exe
mkdir notepatra-win
copy build\Release\notepatra.exe notepatra-win\
windeployqt notepatra-win\notepatra.exe
copy $env:TEMP\qsci-install\bin\qscintilla2_qt5.dll notepatra-win\
.\notepatra-win\notepatra.exe
If you hit LNK2019 unresolved external symbol QsciScintilla::staticMetaObject — verify CMakeLists.txt defines QSCINTILLA_DLL for Windows targets. Without it, MSVC won't emit __declspec(dllimport) and the linker will fail to resolve symbols against the import library. This is the gotcha that took 12 CI iterations to find.
Plugin System
Drop a shared library in ~/.config/notepatra/plugins/ and restart.
- Linux:
.so files
- macOS:
.dylib files
- Windows:
.dll files
Write your own plugin in 30 seconds:
extern "C" {
const char* notepatra_plugin_name() { return "My Plugin"; }
const char* notepatra_plugin_version() { return "1.0"; }
const char* notepatra_plugin_author() { return "Your Name"; }
char* notepatra_plugin_run(const char* text, int len) {
}
}
g++ -shared -fPIC -o myplugin.so myplugin.cpp
clang++ -shared -o myplugin.dylib myplugin.cpp
cl /LD myplugin.cpp /Fe:myplugin.dll
Why not just use...?
| Editor | Download size | Native | Local AI | Built-in JSON fixer | 2 GB files | Linux | Win | Mac | Free |
|---|
| Notepad++ | ~4 MB | ✓ | ✗ | plugin only | ✗ | ✗ | ✓ | ✗ | ✓ |
| VS Code | ~300 MB | ✗ Electron | extension | extension | ✗ | ✓ | ✓ | ✓ | ✓ |
| Vim / Neovim | ~3 MB | ✓ | ✗ | ✗ | ✓ | ✓ | ✓ | ✓ | ✓ |
| Sublime Text | ~30 MB | ✓ | ✗ | ✗ | ✓ | ✓ | ✓ | ✓ | $99 |
| Kate / Gedit | ~30 MB | ✓ | ✗ | ✗ | ✓ | ✓ | ✗ | ✗ | ✓ |
| Notepatra | 4.1 / 27.5 / 43.9 MB | ✓ C++/Rust | ✓ Ollama | ✓ regex + AI | ✓ Rust mmap | ✓ | ✓ | ✓ | ✓ GPL-3 |
Notepatra download sizes are Linux x64 tar.gz / macOS DMG / Windows MSI from v0.1.120. Linux is just the binary (Qt is system-installed). macOS and Windows include bundled Qt. The bare notepatra executable inside is ~13 MB on every platform (Linux 13.4 MB, similar on macOS / Windows). Compressed download is much smaller because tar.gz / DMG / MSI all compress the binary plus shared libraries.
Tests
Focused automated regression tests are wired through CMake + CTest and run in CI — 79 test suites on the Full build (76 on Lite, which omits the two DuckDB suites and the WebEngine-gated Noter-export suite); all green, each with many assertions. A representative sample:
test_lexers — verifies every shipped QScintilla lexer produces real styling
test_palette — verifies the canonical 9-hue palette colors and bold/italic styles
test_fmtpanel_diff — verifies formatter panels keep diff state and emit signals
test_compare_widget — verifies the inbuilt Compare panel diff/edit/close paths
test_sqlfmt — 33 assertions across 11 SQL dialects through the AST pretty-printer
test_updater — verifies pickAssetForPlatform, SHA256 parsing, and asset scoring (18 assertions)
test_projectsearch — verifies the Rust-backed project search streaming path
test_projectsearch_ui — verifies the Project Search UI bindings
test_ollama — verifies live Ollama model detection (skips cleanly when offline)
test_aifix — exercises the AI-fix cleanup path against a real Ollama daemon (skips cleanly when offline)
test_llamacpp — exercises the llama.cpp backend path
test_ai_context — verifies the AI workspace-context summarizer
Run them locally with:
The Ollama / llama.cpp / AI-fix tests skip cleanly when no inference backend is running, so local and CI runs stay deterministic.
Releases
Notepatra follows Keep a Changelog and Semantic Versioning. Every release is tagged, signed, and published to GitHub Releases with binaries for Linux x64, Linux ARM64, macOS Apple Silicon, and Windows x64.
| Version | Date | Highlights |
|---|
| v0.1.129 | 2026-08-22 | SSH keys behind a rail, and diagrams that look drawn by an engineer. The Password Generator's two radio buttons become a left rail — Password / Passphrase / SSH key (Alt+1 / Alt+2 / Alt+3), and Tools > Password Generator — Passwords / Passphrases / SSH keys. The new SSH key page generates a real OpenSSH pair: Ed25519 (recommended), ECDSA P-256 / P-384, RSA 3072 / 4096, RSA 2048 (legacy); an optional passphrase encrypts the private key with aes256-ctr + bcrypt-pbkdf, the same construction ssh-keygen uses. The comment field is empty by default on purpose — ssh-keygen defaults it to user@host, which copies your username and machine name into every authorized_keys the key is pasted into. The public line and its SHA256 fingerprint show immediately; the private key stays hidden until Show private key; Save private key… creates the file, sets 0600, then writes, refuses to overwrite, and drops the .pub beside it. Generation runs off the GUI thread (RSA-4096 measured 1.6–5.9 s) and the 30-second clipboard wipe arms for the private key only. Keys come from the OS random source (getrandom) via the Rust core — and every password draw now uses that source too, with Qt's generator demoted to a fallback. Interop is asserted against the system ssh-keygen (-y, -lf, -y -P). Binary grows ~0.6 MB for the pure-Rust crypto (RustCrypto ssh-key). Diagrams (.npd) are now flat — no gradients, no shadows, 1.5 px borders, the app font — with two light palettes (paper, slate) and a new default palette auto that follows the app theme, so an existing file with no palette line now renders light on a light theme. New grammar: `direction LR |
| v0.1.128 | 2026-08-20 | A password generator whose entropy figure is a count, not a compliment. New built-in Password Generator — the Password button on the Built-in Tools toolbar (third, right after AI), or Tools > Password Generator — Random / Passphrase — producing either random characters (4–256, default 20; a-z / A-Z / 0-9 / a 27-character symbol set that omits the quotes, backslash, backtick, pipe and space so the result survives a shell command, a YAML file or a connection string; free-text extra characters; optional look-alike exclusion) or a passphrase (3–24 words from a 2,048-word list compiled into the binary, so each word is worth exactly 11 bits and six words is 66 bits), 1 to 100 at a time. The bits readout is the base-2 logarithm of how many values the current settings can produce — not a heuristic score of how complicated the output looks — so ticking at least one from each set makes the number drop, recomputed by inclusion–exclusion because the guarantee rules out every password that misses a set; most generators advertise the unconstrained figure while enforcing the constraint. Draws use QRandomGenerator::system() (the OS CSPRNG) with rejection sampling, and the set guarantee is met by re-drawing rather than placing-and-shuffling, which would skew the distribution and make the bits figure a lie. The panel is a plain widget, not an editor, so a generated value never reaches session.json, an AI backend, or a connected MCP client · Copy takes the value back off the clipboard after 30 seconds, but only if it still holds it · nothing is written to disk. Ships in every build including Lite, no new dependency, fully offline · two new suites (test_passwordgen, test_passwordgen_panel) take the Full build to 78/78 ctest green. No MCP verbs, lexers or file extensions changed. |
| v0.1.127 | 2026-08-07 | Five doors refused a private key. The sixth handed it over in chunks. Retesting v0.1.126 found select_range + get_selection returning credential-file contents that open_file, read_tab, find_in_tab, search_project and resources/read all correctly refused — get_selection had been exempted on the reasoning that a selection is human-made, but select_range lets the client choose the range, which makes that reasoning false. apply_edit was a quieter form of the same thing: reading the buffer as a match oracle, so "no match" versus a card naming the match reports a file's contents one probe at a time. The fix is structural. This is the third release with the same shape — v0.1.125 unified two hand-maintained copies of the deny list, v0.1.126 added the check to four verbs, and the retest found a fifth and sixth. Every fix was correct and none converged, because what kept going stale was the enumeration. Buffer text now leaves the editor through exactly one accessor that refuses before returning, select_range will not even stage a selection over a credential file, and a test lints the bridge source and fails the build on any direct buffer read that bypasses it. Also fixed: read_tab's marker claimed [truncated at 5 MB] whatever cap actually applied (now [truncated: showing N of M characters], and the v0.1.126 claim that it "always reports truncated and total_chars" is corrected — true of the wire, not the tool result) · select_range advertised tab_id in its schema and rejected it with -32602, so a test now walks the whole tool list asserting every advertised selector is accepted · list_open_tabs emitted id where verbs take tab_id, both ship for one release. |
| v0.1.126 | 2026-08-07 | v0.1.125 taught search_project to skip credential files — it never told open_file or read_tab, so an agent that asked for ~/.ssh/id_rsa by name still got the whole key back. A deep retest confirmed all four v0.1.125 Windows fixes on real hardware and found nine more defects underneath. open_file, read_tab, find_in_tab and both legs of search_project now check the same deny-list — v0.1.125 had guarded only the filesystem walk, so the same file sitting in an open tab was read straight out of the buffer. format_json invented data and reported success: it called the JSON panel's auto-fixer, so [1,2 came back as [1,2] with isError:false — a truncated config file made syntactically valid and semantically invented. The MCP path validates strictly now; the panel keeps its fixer. Fixed: a search with zero matches was reported as "No workspace folder is open", which is a different fact about the world · workspace_searched/scope were sent by the bridge and dropped by the Rust struct, so no client ever saw the fields v0.1.125 promised · without --socket every response was fabricated with no marker, so a dropped flag produced an assistant describing three files that do not exist · find_in_tab rejected a title that read_tab accepted · an invalid pagination cursor was ignored and the full list returned. Changed: tabs now have a stable id — tab_index is positional and re-points at a different document when a tab closes, and out-of-range was the lucky case · read_tab takes max_bytes and always reports truncated and total_chars. |
| v0.1.125 | 2026-08-07 | A one-word MCP search could return the contents of your SSH private key — fixed, along with three other defects found by testing the MCP server on Windows. No new editor features; every change is a fix. The credential deny-list existed in two hand-maintained copies that had drifted in both directions (ai_tools.cpp had *.tfvars/*.tfstate/.pypirc/the .env family; git_hunk_apply.cpp had *.jks and an unanchored id_rsa; neither was a superset) and search_project consulted neither — so read_file refused ~/.ssh/id_rsa while a one-word search returned its lines. src/path_denylist.h is now the single list, built as the union, with all three callers routed through it. search_project also walked the entire home directory: FileExplorer's constructor set m_rootPath = QDir::homePath() as a display placeholder, and four guards read it as "the workspace" — including the AI CSV sandbox and a security guard that had therefore never once closed. workspaceRoot() now stays empty until a folder is opened, and a workspace-less search reports workspace_searched and scope so a partial search cannot pass for a complete one. Fixed: goto_line past EOF reported {"line": 99999, "ok": true} from the top of the document, so an assistant aiming at the end of a file wrote at the beginning behind a correct-looking approval card · insert_text with col but no line silently dropped col and wrote at the cursor · the sidecar hung on every unrecognised argument (--version printed nothing and blocked on stdin; --sokcet silently started the mock server so the client received fabricated tabs) · the AI workspace root flapped on every Ctrl+Tab, swapping chat history and cancelling pending write approvals · Windows binaries reported version 0.1.0 to winget, SCCM, Intune and File Properties for 124 releases — the .rc is generated from CMake now, with a CI step reading VersionInfo back off the shipped .exe. Every new test red-state verified by restoring the pre-fix code, not by negating a condition. |
| v0.1.124 | 2026-07-28 | Invisible characters are now visible — 527 of them, where Notepad++ draws 113 — and two Find/Replace bugs that were destroying text are fixed. A file containing a zero-width space used to look exactly like a file without one: symbol support was only whitespace dots and EOL markers, so every zero-width, bidirectional and exotic-space codepoint was undrawable. View → Show Symbol is rebuilt to Notepad++'s eight-item structure in its order (Show Space and Tab · Show End of Line · Show Non-Printing Characters · Show Control Characters & Unicode EOL · Show Every Other Invisible Character · Show All Characters · Show Indent Guide · Show Wrap Symbol). The non-printing (49) and control/Unicode-EOL (64) tables are transcribed from Notepad++'s source byte-for-byte, abbreviations included (ZWNBSP for U+FEFF, OSPM for U+1680, SGCI for U+0099). "Show Every Other Invisible Character" adds the 414 codepoints Notepad++'s fixed tables miss — variation selectors, the TAG block U+E0020–E007F, the Hangul fillers, the combining grapheme joiner. Blobs can show codepoints (U+200B) instead of abbreviations, and every Show Symbol setting now persists across restarts and applies to all tabs. Defaults match Notepad++ — everything off except the control-character display, so non-printing characters are off out of the box. Fixed: Replace All silently deleted any replacement containing $ (handed to the regex engine as a substitution template, so $100 parsed as capture group 100 and expanded to nothing) · Replace reported replacements it had not made and overwrote unrelated selections · Find in Files' default *.* filter skipped extensionless files like Makefile and .gitignore · Mark All highlighted the wrong spans (offsets computed into a lowercased copy, and lowercasing is not length-preserving in UTF-8) · indent guides rendered as a white-on-black barber pole in Dark and Monokai. Three new suites (75 total Full), each red-state verified. |
| v0.1.123 | 2026-07-23 | The "Save As" dialog is now the native OS file dialog — the Windows Explorer tree everyone knows. Save As was the only dialog still forced to Qt's own plain "Look in:" list (no folder tree); it now uses the native Windows / macOS / Linux dialog, matching Open, Open Folder, and Save a Copy As, which were already native. The 72-language file-type dropdown is preserved and extensions stay correct (bare name on a Python tab → .py; a typed extension is always honoured). It went non-native back in v0.1.88.1 because native dialogs dropped the "which type did you pick" signal and could save the wrong extension — now sidestepped by driving the default extension from the current tab's language instead of the dialog filter. Verified in the running app. |
| v0.1.122 | 2026-07-23 | Save & Open dialogs remember your last folder — on every platform. Saving a brand-new file, "Save a Copy As", "Open", and "Open Folder as Workspace" previously reopened at your home folder every time; they now start in the directory you last used and persist it across restarts. "Save As" still prefers the current file's own folder when it has one — the remembered directory is only the fallback for untitled buffers and secondary dialogs, so nothing regresses. Self-healing: a remembered folder that was deleted or lived on an unplugged removable drive falls back to home instead of failing. Covered by a new red-state-verified regression test (72 suites) and confirmed on the compiled Linux binary. |
| v0.1.121 | 2026-07-21 | MCP design hardening — 6 fixes from live-driving all 48 verbs against a running editor (48 → 49 tools; Read 24 / Act 14 / Write 11). list_open_tabs now reports an editable flag on every tab, and the read / insert / compare / save verbs gate on it — so the read-only Welcome tab (index 0), previously a silent trap, returns a specific error instead of a no-op. save_tab gains an optional Save-As path so an AI can persist a new_tab's content to disk — still Write-tier and approval-gated, path validated before the card, destination shown on it. New select_range verb (Act) finally makes replace_selection usable by an AI. git_* now falls back to the editor's startup working directory, so Git works when Notepatra was launched from inside a repo with no workspace open. Generic errors ("could not insert", "could not open compare view", "needs Save As") are replaced with specific, actionable ones. Charts render on Qt 5.15 WebEngine — the chart bundle now polyfills Object.hasOwn and structuredClone before the Vega scripts, which Qt 5.15's WebEngine (Chromium ~87) lacks; this had been breaking all chart rendering there (render_chart drew nothing, export_chart surfaced e.isString). Approval gate unchanged: every write needs an in-editor click, 120 s auto-deny, no headless bypass. |
| v0.1.120 | 2026-07-20 | MCP full control — 48 tools, a remote gateway, and the sidecar finally works on Windows and macOS. notepatra-mcp grows from 35 to 48 tools (Read 24 / Act 13 / Write 11), making every sub-app AI-drivable: Diagram (create_diagram, get_diagram_source, set_diagram_source), Data-analyst (list_connections, run_query, list_tables, open_data_analyst, export_query_results — reaches your saved PostgreSQL / MySQL / SQL Server / SQLite / DuckDB connections, SELECT-only and row-capped), Charts (render_chart, export_chart), Noter (open_noter), and discovery (list_languages, get_capabilities). Two defects that made the sidecar unusable outside Linux are fixed: the Windows named-pipe transport deadlocked on every verb — the pipe was opened without FILE_FLAG_OVERLAPPED and a parked reader thread blocked every write forever, so no tool call ever completed (only the first request after the greeting hung, which is why it looked healthy) — and on macOS the sidecar could not locate a running editor at all, because it guessed $TMPDIR while Qt binds under NSTemporaryDirectory(); the editor now publishes its real bound endpoint. New opt-in loopback-only remote gateway (serve / pair / connect, 8-digit HMAC pairing, fail-closed scopes) — the default build stays crypto-free, asserted in every CI job, and a remote write still raises the same local Approve card. Windows gains a prebuilt cosign-signed sidecar zip and a one-click .mcpb Claude Desktop bundle. .mcpb also fixed to stop handing Intel Macs an arm64 binary and ARM64 Linux an x64 one. Approval gate unchanged: every write needs an in-editor click, 120 s auto-deny, no headless bypass. Full offscreen ctest 71/71, sidecar 83 tests (117 with --features remote). |
| v0.1.119 | 2026-07-18 | MCP depth — 35 tools. The notepatra-mcp sidecar grows from 22 to 35 tools in three tiers — Read 18 / Act 9 / Write 8. New read tools: list_reminders, read-only Git (git_status / git_diff / git_log / git_show / git_branch), validate_npd, and run_sql (SELECT-only). New act tool: open_note. New human-approved write verbs: create_note, append_note, set_reminder, export_diagram. find_in_tab / search_project gained an optional regex flag. Windows named-pipe transport is now supported (Linux/macOS/Windows all connect via --socket; prebuilt Windows binaries not yet in the signed bundle — build from source / cargo install). run_sql security: SELECT-only via the SQL classifier and, on the Full/DuckDB edition, an engine sandbox — the file is materialized in-memory, then enable_external_access=false is set before the untrusted query runs, so it cannot read host files; an adversarial security pass hardened it before ship. Bare Lite binary unchanged at 13.4 MB (the new tools live in the sidecar). Full offscreen ctest 71/71, Lite 68/68, 60 sidecar cargo tests, live end-to-end across all 35 tools. |
| v0.1.118 | 2026-07-17 | MCP support — your editor, readable by your AI. New standalone notepatra-mcp sidecar: a spec-compliant stdio JSON-RPC 2.0 Model Context Protocol server exposing 22 tools in three tiers — read (10), act (8), and write (4) — plus open tabs / Noter notes as MCP resources and 3 ready-made prompts. Works with Claude Desktop, Claude Code, OpenAI Codex CLI, the OpenAI Agents SDK, and any spec-compliant stdio MCP client. Every write is human-gated: an Approve/Deny card inside the editor window, 120 s auto-deny, FIFO one-at-a-time, no headless bypass — the gate lives in the editor process, so no MCP client can write without a human click. Local socket + stdio only, no network connections; Linux/macOS first (Windows named-pipe transport in a future release). Prebuilt notepatra-mcp binaries ship as cosign-signed release artifacts; new docs page notepatra.org/mcp.html. Bare-binary size claim corrected 12.4 → 13.4 MB. Full ctest 68/68 + 47 sidecar cargo tests + live E2E 17/17. |
| v0.1.117 | 2026-07-17 | The honesty release — a 32-agent adversarial audit of every component, every confirmed defect fixed, ~4,100 LOC of dead code removed. No new deps, same bare binary (slightly smaller). Find & Replace tells the truth: Find in Files finally shows its results (they were written to a never-shown widget), whole-word is honored by Count / Replace All / Find in Files, line numbers are right in non-ASCII files, and dead controls are hidden until they work. Noter export unlocked: notes export as PDF / Markdown from the right-click menu (the exporter was fully built and tested — it just had no UI entry point); resizable pop-out with visible pin state; Dark/Monokai-correct dialogs. UTF-32 files with emoji no longer corrupt on save (byte-level round-trip regression-tested). Terminal gained a real Stop button; tab colors survive reorder; image attach is no longer gated by a hardcoded model list. ~150 Rust-core unit tests promoted into CI + release gates; git-panel test resurrected; full ctest 70/70. New for AI assistants: llms.txt + crawler-friendly robots.txt + CITATION.cff. |
| v0.1.116 | 2026-07-06 | Two focused, adversarially-verified fixes — no new features, same bare binary, no new deps. Compare view is readable again: the changed-word inline-diff highlight used a heavy red/green fill that buried the text; it's now a soft wash with a crisp red/green outline, WCAG AA in Light / Dark / Monokai. The updater picks the right edition: the release-asset picker previously scored every installer variant equally, so GitHub asset order could hand you the wrong edition; it now deterministically selects the installer matching this build's edition (Lite/Full × cloud/local-AI) across Windows / macOS / Linux. Full ctest 70/70, every fix red-state proven. |
| v0.1.115 | 2026-07-05 | Security, robustness & quality hardening — the AI coding assistant regrades B → A- and the Data analyst C+ → A-. No new features, same bare binary, no new deps. Read-only database access is now enforced in three real layers — engine-level DuckDB READ_ONLY, a structural SQL classifier that replaces the old bypassable leading-keyword prefix gate, and PostgreSQL/MySQL session read-only — and any data mutation now raises a human approval card (the model can no longer self-approve via confirm:true). Query cancel/timeout genuinely interrupts a running DuckDB query (duckdb_interrupt) and a row-cap prevents OOM. The AI tool registry is mode-aware (the read-only Ask segment and Data mode can't write files), Compose runs a host-enforced dry-run, edits are atomic via QSaveFile (a failed write can't destroy your original), and approve all is scoped per action kind. Truncated model output is now a distinct "Response cut off — Retry" state. Testing: the previously-phantom read-only-gate test (was git-excluded and never compiled) is now real and CI-run (143 assertions), plus new write-gate (44) and async-DB (30) suites; full ctest 70/70 (up from 67), every fix red-state proven, and a 5-agent adversarial fleet caught and closed a fix-introduced regression. |
| v0.1.114 | 2026-06-11 | Opening files is now bulletproof — the Windows "double-click does nothing" ghost-open class is dead. The single-instance handoff is greeting-gated (the running instance proves it's alive before the payload is sent, every byte confirmed drained; a hung instance yields a visible temporary window instead of silence — double opens structurally impossible). Non-ASCII paths open on Windows (true UTF-16 argv, was ANSI-codepage mangling). Sessions can't be silently lost: every session-passive window (--new, fallback, restore-skip) prompts Save/Discard/Cancel on close; session.json writes are atomic on Windows; login races can't produce two session writers. File → Close All no longer freezes the app (pre-existing infinite loop vs the keep-one-tab backfill); watcher prompts are strictly one-at-a-time (a mid-prompt file deletion could crash via a freed editor); word count is cached/debounced for multi-MB files; crashes leave an async-signal-safe flag. 13 deep-dive findings + 30 fleet-confirmed follow-ups — every serious one fixed, 7 low-priority items documented as deferred. 13 new test suites (67 total Full). |
| v0.1.113 | 2026-06-06 | Noter grows up — graded A (from C-). The v0.1.112 system-of-record wave shipped under this tag plus a hardening pass that closed 12 adversarial re-verify findings (3 critical + 9 high, several introduced by the v0.1.112 fixes themselves): reminders fire app-wide and follow renames, failed saves can't be silently discarded by checklist navigation, conflicts stay visible mid-navigation and keep real titles, Extract single-flights and applies to the launch note, checklist theme switches keep undo/redo intact, body search is linear (2 MB note: ~125 s hang → ~1.4 s). apply_diff writes inserted lines byte-exact; gated-write approval resets the retry guard and always logs. Full ctest 54/54, every finding pinned by a dedicated contract test; 7-dimension regrade: A. |
| v0.1.112 | 2026-06-06 | Noter — the system-of-record wave (audit grade C- → target A). A 19-agent usability audit found Noter great for live capture but untrustworthy around it; this release fixes every CRITICAL/HIGH finding. Reminders now actually fire — the engine is app-lifetime instead of dying with the Noter tab, and reminders missed while the app was closed arrive as one catch-up digest. Save failures are loud (red NOT-SAVED + banner + save-a-copy escape), external edits divert to a conflict copy instead of being clobbered, saves are fsync-durable with a ≤2 s crash-loss draft sidecar. Search reads note bodies (was titles-only) with snippets and match counts; one display title everywhere; headers survive reload. AI Extract can't hang the app (pre-flight + watchdog + Cancel) and its results persist idempotently into the note. Noter follows Dark / Monokai themes (was hardcoded light). Plus a 3-layer apply_diff hardening for the coding agent (tool-side escape-lint + degenerate-hunk rejection, model-agnostic recovery ladder, perseveration breaker). No new deps, same bare binary. Full ctest green (54 suites). |
| v0.1.111 | 2026-05-31 | The lovable AI agent wave — four assistant UX features that make agentic editing trustworthy (grade B- → B+/A-). Agent mode now shows an Approve / Reject write-confirmation gate before write_file / apply_diff ever touches disk, so autonomous edits never land silently. A context-transparency chip + popover reveals exactly what codebase context is sent to the model, with per-source exclude toggles to drop a file or folder before it leaves your machine. Every Composer Apply is now drift-protected and byte-exact — one "Undo apply" restores the file precisely and refuses if it changed underneath you. And the Ctrl+I inline edit renders a real, theme-aware Myers diff so you see exactly what changed before accepting. UX/behaviour only — no new deps, same bare binary, download sizes unchanged. 52/52 ctest pass. |
| v0.1.110 | 2026-05-31 | AI coding assistant — trust & clarity pass (driven by a deep usability audit, grade C+ → B-). The assistant header now shows your full posture at a glance — AI · CODING · COMPOSE (review-before-write, teal) vs AI · CODING · AGENT (writes hit disk live, red) — so you never guess whether the AI will edit your files. Coding now defaults to the safe Compose lane (propose-then-review), not autonomous Agent, so reopening never silently drops you into live disk writes. Applying a proposed edit now marks each file ✓ applied, drops a confirmation, and disables re-apply (no more "did it land?" or accidental double-write). Inline edit (Ctrl+I) now uses your selected model (not a fixed small default — fixes the no-hardcoded-model rule) and groups its change as one undo so a single Ctrl+Z reverts the whole AI edit. UX/state only — no new deps, same bare binary, download sizes unchanged. 51/51 ctest pass. |
| v0.1.109 | 2026-05-31 | The full build drops its "Full" name tag — the default build now self-identifies simply as "Notepatra". notepatra --version, the window title bar and the About dialog show Notepatra for the full (DuckDB-bundled) build instead of "Notepatra Full" — the full edition is the default, so it carries no qualifier. The bare build still says Notepatra Lite so you can tell it apart, and the cloud-free builds are Notepatra Local AI / Notepatra Local AI Lite. Naming only — the Lite vs Full downloads are unchanged (Full still bundles the DuckDB engine), as are the binary's features and download sizes. 51/51 ctest pass. |
| v0.1.108 | 2026-05-31 | Data Analyst mode writes sharper SQL — three filter-correctness idioms added to the built-in analyst prompt. Case-insensitive text search: "description contains X" now lower-cases both sides (LOWER(col) LIKE '%x%') instead of a case-sensitive match that silently skipped Capitalized rows and undercounted. Exact-code matching: when a question names a coded value ("LOINC 8480-6", "CVX 140") the analyst matches the bare stored code and stops, instead of bolting on a guessed SYSTEM=/CATEGORY=/redundant LIKE predicate that could drop every matching row. No more inventing a category/type literal from the question's English label ("obese", "active") without verifying it exists. Prompt-only — same bare Lite binary, no new dependencies, download sizes unchanged; the three idioms were validated against a multi-domain text-to-SQL evaluation (the production model's lone remaining synthetic-EHR defect was fixed, with no regressions). 51/51 ctest pass. |
| v0.1.107 | 2026-05-30 | Lite + Full downloads for all three platforms, with DuckDB v1.1.3 bundled in Full. Previously only Linux published a -full build; the macOS DMG / Windows MSI shipped without WebEngine despite the docs (the v0.1.106 Windows zip had zero WebEngine DLLs). Now every platform offers a Lite (bare) and a Full download — Full bundles DuckDB v1.1.3 everywhere (in-process Parquet / JSON / S3 / SQLite federation), plus the QtWebEngine inline Vega-Lite chart renderer on Linux/Windows (macOS Full is DuckDB-only; the native fenced ```chart QtCharts renderer works on every platform). The app now names its build flavor in --version / title bar / About (Notepatra Lite / Full, and Notepatra Local AI Lite / Full). Fixed: 13 double-mapped file extensions resolved only by hash order (.hh opened as Hack not C++) — deduped and locked by tests; Ctrl+Shift+K was bound to both Delete Line and Uncomment Line (Uncomment moved to Ctrl+Alt+U). 51/51 ctest pass. |
| v0.1.106 | 2026-05-29 | A reliability + security hardening release — every change hardens a code path that already shipped, no new features. Session restore could write unsaved content to the wrong file when a restored tab pointed at an unreadable/already-open file (now lands orphaned content in a fresh untitled tab). CredScrub now runs over the AI tool-result channel (read_file/git_diff bodies were forwarded verbatim to the backend); the read-file deny-list adds the dotenv family incl. app.env/database.env, secrets.json, and *.tfvars/*.tfstate; chart HTML export is XSS-escaped (both build paths); dry-run edits now queue an absolute path so they can't clobber $HOME; an interior-NUL heap over-read in the Rust core (Base64 decode) is fixed. Plus a large-file memory soft-gate. |
| v0.1.105 | 2026-05-29 | The per-symbol diagram colours from v0.1.104 now appear by default in the ER and System starter templates, not just the flow chart. Colour was never gated on diagram type — it has always worked on database cylinders and icon nodes — so this is purely a discoverability fix: the ER starter now colour-groups entities (green master / blue transactional) and the System starter groups by tier (teal edge / blue app / purple data), and Help states colour works on every node type and diagram. Colour stays opt-in. |
| v0.1.104 | 2026-05-29 | Diagrams gain optional per-symbol colours and chained arrows — both opt-in, both native, both staying monochrome by default. Add a #hex or named colour after a node's shape (node proc [Process] #1565c0, node start (Start) green) for auto-contrast coloured symbols on any palette/theme; connect a run of nodes on one line (a -> b -> c, label rides the last hop). Plus .npd parser hardening surfaced by an adversarial parse audit — node ids may contain colons/URLs (http://x -> y), node labels may contain ->, and an untrusted diagram title can no longer inject a live tag into exported HTML/SVG. |
| v0.1.103 | 2026-05-27 | Diagrams now render natively in the default binary — on every platform, including macOS Apple Silicon and the Windows installer — with no WebEngine, no Chromium, and no separate "Full" download. v0.1.102 drew diagrams inside an embedded Chromium (QtWebEngine + dagre.js), so the picture never appeared on the default lite binary, on macOS Apple Silicon, or anywhere WebEngine wasn't bundled. v0.1.103 replaces that whole pipeline with a native QPainter renderer (src/diagram/diagram_render.{h,cpp}): longest-path layering + barycenter crossing-reduction, border-anchored bezier connectors, ~55 hand-drawn icons (~150 aliases) for system/ER/flowchart, 5 palettes, scroll-zoom/drag-pan. Export to PNG/JPEG/PDF on every build, plus SVG/HTML where the Qt Svg module is present and WebP where the WebP image plugin is present — the export menu shows exactly what your build supports. No more Full vs Lite split for diagrams. |
| v0.1.102 | 2026-05-25 | Diagrams — flow / ER / system from a text DSL, with AI generation, a live canvas, and PNG/SVG/PDF/HTML export. New first-class diagram tool (Full flavor): the text-first .npd DSL is the source of truth and the canvas is a live projection. Create three ways — AI Generate (describe it → review the generated .npd → Insert), templates, or write .npd directly (plus Import Mermaid). 5 shapes, 12 icons, directed/labelled/bidirectional arrows, label-overflow→hover, 5 palettes, infinite pan/zoom. Toolbar button next to Noter + in-tool Help cheat-sheet + samples/diagram_showcase.npd + npd_render CLI. Also fixed: CMAKE_AUTORCC was never enabled, so .qrc resources (vega.qrc inline charts, icons.qrc, the diagram render layer) weren't bundling in Full builds — now corrected. 53/53 ctest pass. |
| v0.1.101 | 2026-05-25 | In-app updater finalizes even when a prior download is locked. On macOS the update downloaded + verified, then failed with "Could not finalize the download file." Updater::runUpdate() moved the verified ~/Downloads/<name>.part to <name> with if (exists) remove(); rename(); but ignored the remove result — and on macOS a .dmg the updater previously opened stays MOUNTED in Finder, which macOS won't let you delete, so QFile::rename then refused to overwrite it and every retry re-wedged. Fix: new uniqueDestPath() lands the file under a browser-style <name> (1).dmg when the destination can't be removed, plus a copy+remove fallback. Net improvement on all platforms. New test_updater cases cover the dedup for .dmg/.tar.gz/.msi/.deb/.AppImage (a version-dot edge case was caught + fixed pre-release). 47/47 ctest pass. |
| v0.1.100 | 2026-05-25 | 🎉 100th release — window opens centred on Windows. On a cold start / file-double-click the window could open with its title bar above the top of the screen, hiding the min/max/close buttons. Root cause: position was saved with QWidget::x()/y() (Qt FRAME coords, incl. the title bar) but restored with setGeometry() (CLIENT coords), so on Windows the title bar climbed up by its own height each launch until the controls left the screen; the ≥100 px on-screen clamp didn't catch a body-on-screen / title-bar-off-top window. Fix: new centeredWindowRect() helper — both restore sites (config + session) now centre on the saved size with a title-bar-height top margin instead of restoring the saved x/y. Maximized state + window size preserved; only on-screen position is dropped (always centred). Also confirmed (no change): the AI Interaction Log at %APPDATA%\Notepatra\ai-logs\ persists across upgrades and survives uninstall (installers never touch %APPDATA%). 47/47 ctest pass. |
| v0.1.99 | 2026-05-25 | Noter sidebar renders light on macOS. The Notes/Reminders/Trash tree drew on a dark background while the rest of the Noter panel stayed light — a stale stylesheet selector after the list→tree migration. sidebarStyle() still carried the old QListWidget#noterMeetingList rules and had none for the migrated QTreeWidget#noterSidebarTree; a Qt item-view paints its viewport from its own QPalette::Base, which the parent panel's QSS background doesn't reach, so the unstyled tree fell through to the dark system base on macOS (Linux/Windows default to a light base, so it never showed there). Fix: explicit QTreeWidget#noterSidebarTree light-background rules plus a QPalette::Base/Text pin in buildSidebar() as a belt-and-braces fallback; ::branch left native so disclosure arrows survive. Cosmetic-only — Noter worked throughout. 47/47 ctest pass. |
| v0.1.98 | 2026-05-25 | Windows in-app updater fixed. The v0.1.96 EOL-OpenSSL guard hard-disabled Check for Updates on any OpenSSL 1.0.x / 1.1.x runtime, popping an "in-app update check disabled" dialog for every Windows user. That was a misdiagnosis — "end-of-life" (no upstream security patches) ≠ "broken": the bundled OpenSSL 1.1.1w speaks the TLS api.github.com requires, and the real v0.1.96 launch-hang was the session-restore loop (fixed separately in v0.1.96). The gate is removed; the update check keeps its existing, sufficient safety net — async QNetworkAccessManager, an 8-second abort timer, a QSslSocket::supportsSsl() guard, and a TLS-aware "Open Releases Page" fallback. One-time: v0.1.96 / v0.1.97 Windows builds still carry the gate, so download v0.1.98 manually once; in-app updates work from then on. (Bundling OpenSSL 3 on Windows — the Qt 5.15.2 ABI targets OpenSSL 1.1 — remains queued as separate security hygiene.) 47/47 ctest pass. |
| v0.1.97 | 2026-05-25 | Noter reminders grow up + cloud-AI fixes. New central Reminders sidebar root (between Notes and Trash) lists every scheduled reminder grouped Overdue / Today / This week / Later — click to open the note, pencil to reschedule, ✕ to delete; overdue rows render red; painter-drawn amber clock icon. Extract now schedules real reminders (the "Remind" checkboxes were previously cosmetic) via new NotesTodos::addReminder(); resolves natural-language times ("10am tomorrow") to a concrete LOCAL wall-clock (was UTC, which shifted the hour); returns a plain-English summary shown in the dialog + saved above the action items; and flags already-scheduled actions on re-run (fuzzy match) so you don't pile up duplicates. Remind defaults ON only when a concrete time was extracted. Three cloud-AI fixes: double-/v1 URL (…/api/v1/v1/models → 404 "unreachable") normalized via openAiV1Base(); streaming 401 no longer spins ~60s silently — surfaces a prompt auth error; and cancelling the Extract result no longer crashes (the dialog deferred off the network signal so a trailing downloadProgress can't hit freed memory). AI Interaction Log surfaced as a first-class privacy feature (Features → AI Interaction Log…) in the in-app Help, README, and website. 47/47 ctest pass (new test_stream_error, test_notes_todos §13, test_notes_panel_widget §21–23, sweep-prompt local-time + summary). |
| v0.1.96 | 2026-05-24 | Same-day Windows hotfix for v0.1.95. Three root causes of a reproducible launch-hang permanently addressed. (1) Platform-conventional config dir — pre-fix Notepatra wrote to ~/.config/notepatra/ on every OS; Windows users' %APPDATA%\Notepatra\ appeared empty while session state sat in C:\Users\<u>\.config\notepatra\, invisible to IT tooling / backup tools / group policy. New Config::appConfigDir() returns %APPDATA%\Notepatra on Windows, ~/Library/Application Support/Notepatra on macOS, $XDG_CONFIG_HOME/notepatra on Linux (unchanged). One-time copy-migration from the legacy path on first launch; legacy cleanup queued for v0.1.97. All ~6 hard-coded call sites migrated (config.json, session.json, recovery/, ai-logs/interactions.db, db-connections.json, plugins/). (2) Crash-safe session restore — MainWindow::restoreSession() now writes a session.json.restoring marker before opening files and deletes it on success. On next launch, if the marker exists, the previous restore was interrupted (kill / hang) — session.json is moved aside to session.json.failed-<timestamp> (preserving the tab list) and a deferred dialog tells the user where to find it. No more "reopen the same bad file on every launch" loop. (3) EOL-OpenSSL update-check gate — runtime check on QSslSocket::sslLibraryVersionString() hard-skips the GitHub update check if the bundled OpenSSL is 1.0.x or 1.1.x (EOL since Sept 2023). The TLS handshake against modern endpoints can stall the UI thread on a broken stack; bypassing eliminates that path. Bundling OpenSSL 3.x in the Windows MSI queued for v0.1.97 (CI workflow change). All v0.1.95 tests carry forward green (~1325 total, 0 failing) plus new unit tests for appConfigDir() per-platform via env override. |
| v0.1.95 | 2026-05-24 | Windows crash hardening + Noter full redesign. Three Windows crash / hang classes fixed: Save / Save As / right-click-Save reliable crash (root cause: QFileDialog::setProxyModel + QIdentityProxyModel synthetic-column crash on QFileSystemModel's async QFileInfoGatherer; removed the proxy entirely, dropped the Date Created column); multi-PID on double-click launcher (root cause: listen-after-MainWindow-construction + 300ms probe + unconditional removeServer() orphaning the running instance; now bind pipe before constructor, two-stage 500+1500ms probe, conditional removeServer); invisible main window after monitor change (root cause: persisted coords from disconnected secondary monitor; new clampWindowToScreens intersect-tests against connected screens, recenters on primary if no overlap). Plus surfaced 3 silent-save-failure dialogs at File→Save / right-click Save / closeTab Save sites where the bool return was being ignored. Noter full redesign (the meeting-notes tab): rewrote src/notes.cpp from scratch into a two-pane sidebar+editor shape inspired by Apple Notes / Bear / Granola; deleted the 6-button insert bar, slash menu (src/notes_slashmenu.{cpp,h}), 5-button header row, edge-strip icons, and WebEngine path (src/notes_bridge.{cpp,h}, src/notes_editor.{cpp,h}); added markdown shortcuts (- [ ] + Space → ☐; F4 toggle), inline ✕ delete button on every meeting + every todo row, Trash + restore for meetings (Noter/Trash/.trashed-<ts>-<name>.html) AND todos (status='trashed'), inline-editable todo titles via QStackedWidget [QLabel, QLineEdit], calendar pickers in Add-todo dialog (Due + Remind, each with today / tomorrow / 1h-before-due / clear quick-picks), right-click context menus on todo rows with Set due / Set reminder / Mark done / Delete (soft) / Restore / Delete permanently, AI model selector in editor footer auto-populated from OllamaClient::listModels(), single ✨ Extract button bottom-right runs NoterSweepPrompt against Ollama and inserts an Action Items section on Apply. Tool brand-color palette unified — new src/tool_colors.{h,cpp} is the single source of truth for tab strips + feature-toolbar icons + Welcome cards (notepatraToolAccent(toolKey)). Palette overhauled to 12 visibly-distinct hues spread ~30° apart, resolving 5 collisions (AI / JSON both blue → royal blue / cyan; HTML / Project Search both orange → HTML hot pink; Noter / Git both red → Git lime; Brackets / Project Search same hue). Light QMenu styling forced per-instance on every Noter context menu — Qt's QSS doesn't cascade through widgets that set their own stylesheet so the rules must be on each menu. Fixes dark-on-dark right-click that the user reported. ~303 Noter tests (was 257) — test_notes_panel_widget.cpp (NEW 24-case integration test) + 14 new editable-row cases + 22 new trash-lifecycle cases. ~1325 total tests pass across the wider Notepatra suite. All v0.1.93 fixes carry forward unchanged. |
| v0.1.93 | 2026-05-19 | Project Search: intelligent flood protection, live phrase-relevance ranking, match=N% badges, cross-platform completion notifications. Replaces the v0.1.92 unbounded-emit model that OOM-killed the app on import os over $HOME with an informed search experience. Soft warning at 10k matches (amber progress bar + status note, no interruption). Hard checkpoint popup at 50k with Continue / Show me these / Cancel — clicking Show me these flips the UI phase to Idle immediately so the timer doesn't keep ticking while threads wind down; clicking Cancel re-enables the Search button instantly instead of waiting for the worker to unwind. Match all words default OFF — import os runs as exact-phrase by default; power users tick the box for any-order any-line AND semantics. match=N% self-describing badge on every result row (100% = full phrase on this line, 99% = all tokens scattered, lower = partial; column is fixed-width and visually consistent in every mode). Live phrase-relevance ranking on both axes — within-file std::stable_sort descending on per-line %, cross-file live re-positioning in the tree (take + insert at the correct slot) the moment a file's best-line % improves, so 100% files surface to the top during the scan instead of only at the end. Cross-platform desktop notification when a search ≥ 3s completes with the window unfocused — one code path (QSystemTrayIcon::showMessage) routes to libnotify/D-Bus on Linux, Toast on Windows, NSUserNotificationCenter on macOS, no visible tray icon added. Bug fixes: modal dialog double-%% ("Scanned X of Y (4%%)"), "⏳ stalled on:" wording replaced with neutral "· current:" when the scan is just slow on one big file, title 🔍 emoji-font fallback on Linux so the header looks the same as Win/Mac, "Show me these" no longer leaves the status saying "Searching…" for 47 seconds. 39/39 ctest pass (unchanged). All v0.1.92 fixes carry forward unchanged. |
| v0.1.92 | 2026-05-19 | **SQL formatter deep-dive: 9 dialect bugs |