← Blog

I built a keyboard-driven code editor in JavaFX, and AI has been key to building it

December 1, 2026 · editora, java, javafx, ai, claude-code

I’ve been building a text editor in one form or another since last year. Six months ago it became a real repository with its first commit, and today it’s Editora 0.30.1: a keyboard-driven, cross-platform programmer’s editor on JDK 25, JavaFX 27 and RichTextFX, MIT-licensed, with installers for Linux, macOS and Windows.

More than 90% of the non-merge commits on master, out of over 4,000, are co-authored by Claude Code. The second half of this post is about how that works.

Editora editing a Java file, with the Project tree on the right

Why another editor, and why JavaFX?

I wanted a fast, keyboard-first editor that borrows the best ideas I’ve used elsewhere, rather than copying any one of them:

It isn’t Emacs, though. You can’t rewrite the editor from inside itself in Lisp. Plugins are Java jars written against a versioned API, and plugin support is still alpha.

I also wanted to see how far a modern Java desktop stack can go, and it goes a long way. JDK 25 starts quickly with an AOT cache, jpackage builds native installers with a bundled runtime, and JavaFX with a decent stylesheet looks like a current desktop app.

On Linux the packaged build opens its window in about a second and idles at around 600 MB. A big Java project with jdtls attached adds about another gigabyte, most of it jdtls. Files under about 50,000 lines get everything, language server included. Past that the language server stops, from about 200,000 lines or 16 MB a file opens in a lighter large-file mode without highlighting or undo, and from about 50 MB it opens read-only.

What it does

A few parts that I like the most: the Project Map; the Doctor, which tells you exactly which outside tool is missing; switching keymaps live; and a palette that shows why a command can’t run instead of hiding it.

The Project Map

This is my favorite feature, and it’s still in beta. The Map shows your project on a canvas in a window of its own: one column per folder, the selected file’s structure in the next column over, and read-only code cards for reading code without losing your place in the editor. From a card you can follow definitions and callers, open type hierarchies, and see problems, recent changes and the debugger’s current line. Save files as a working set, or record a path through the code as a trail and play it back later, which is handy for showing someone how a feature is wired. If you remember the Code Bubbles research IDE, the Map is in the same spirit.

The Project Map: the folder columns down to Pricing.java with its context menu open, a preview card of Pricing.java, and cards for checkout() and the callers of apply()

The command palette and five keymaps

Every action is a registered command, so every menu item and button can also have a key. The palette shows each command’s key and what it does, and keeps commands that can’t run right now in the list, dimmed, with the reason. On first launch you choose a keymap: Emacs, CUA, Sublime Text, VS Code or IntelliJ IDEA, plus an optional Vim mode.

The command palette after typing fold: each matching command with its Emacs key, and what the selected one does

Language servers and a debugger

Nearly 30 language servers, detected on your PATH or installed from Settings, for diagnostics, go-to, rename, code actions and inlay hints. Step debugging for about 20 languages over DAP, including Java, Kotlin, Python, JS/TS, Go, Rust, C/C++, C# and Ruby.

A Go program in the debugger: inline values beside each line, and the Debug window with call stack, variables and console

Diff and merge

Side by side or unified, with word-level highlights. Compare against HEAD, a branch, a tag, another file or a whole folder; resolve conflicts in a three-way merge view. editora --diff-ui LEFT RIGHT opens just the diff window.

Local History

A snapshot on every save, and before anything else overwrites or deletes the file: a reload from disk, Replace in Files, a Git discard, the AI agent. Diff any snapshot against the current file and restore it. Unsaved edits also survive a crash.

Local History: the revisions of a file with the reason for each, and the selected one diffed against the current text

The Doctor

Editora leans on outside tools: language servers, debuggers, git, build tools. The Doctor is a full-tab report on every one of them: whether each is installed, which version, which copy it found, and an Install…, Turn On or Settings… button on the rows that need one. It’s the place to start when a language server or debugger won’t.

The Doctor tab: the Build Tools section with each tool and its path, five not installed, AI and Agents turned off with Turn On, and the other sections folded to one OK line each

An MCP server for your agent (beta)

Turn it on and Claude Code, or any MCP client, can read the editor’s state: open buffers (unsaved text included), diagnostics, Git status, test results, the debugger’s state. It can edit files and run palette commands. By default every edit it makes shows up as a proposal with a diff for you to accept or reject. It’s off by default, loopback-only and token-protected. Editora asks before an agent runs a command, with Don’t Run as the default button, and an agent can’t trust a folder, turn on plugins or change what it’s allowed to do. I use it while building Editora itself.

Markdown preview, math included

Split or full preview with GitHub styling. Inline $…$, display $$…$$ and math fences render as typeset math, while prices like $5 and shell variables like $HOME are left alone. Mermaid fences render as diagrams, both panes scroll together, and you can export to PDF, HTML, Word or OpenDocument.

A Markdown file in Split mode: LaTeX source on the left, the rendered integral, sum and aligned equations on the right

Also in the box

The full tour is on the features page and the screenshots.

How it’s built: mostly by Claude Code

The main source tree is roughly 700k lines of Java, plus about 3,000 test files. Nobody can hold that much in their head, me included, so a lot of the work goes into documentation and automated checks. When I see the same mistake twice, I add a rule for it.

Is this vibe coding?

“Vibe coding” usually means prompting until something runs, accepting whatever comes back, and not reading the code. Even with Claude writing most of the lines, Editora is built the other way:

Written-down context

An agent starts every session knowing nothing about the codebase, so the repository has to explain itself:

Guardrails in the build and CI

Sooner or later an agent skips a rule that exists only in a Markdown file, so the rules I care about are also checks that fail. Some are old, and some I added only this past week; the new ones are marked.

The new checks are still being tested: today only the build and the formatting check block a merge, and the regression-test job and the risk check will become required checks once they’ve proven reliable.

What hasn’t worked as well

Classes keep growing. Left alone, an agent adds the next method to whichever file already knows the most, and you end up with controllers thousands of lines long. There’s a size cap enforced by a test, and I’ve done split passes on the biggest offenders, but a couple dozen files are still over 3,000 lines.

Reviews take real time. The subsystem reviews (the debugger, the plugin system, the MCP server, Git) keep finding real problems: dozens of findings per review, usually including a couple of serious ones. Checking the code still takes far longer than producing it.

Try it

Grab a package from GitHub Releases or the download button. The .dmg, .deb, .rpm and .msi packages bundle their own Java runtime, so there’s no JDK to download or install first:

Or build it:

git clone https://github.com/adriandeleon/Editora.git
cd Editora
./mvnw javafx:run

The update check is opt-in (it asks on first launch), and the FAQ lists everything else Editora can send over the network.

I’d love feedback, especially from people who live in Emacs, IntelliJ or VS Code: what would stop you from switching? Issues and stars are welcome at github.com/adriandeleon/Editora.