Something went wrong. Try again.
A basic text-editor like neovim in goooo
Something went wrong. Try again.
Files
- Go 100%
README.md
Konan #
One editor. One workspace. One programmable environment.
Konan is a native, keyboard-first, programmable developer environment for Linux: Go + GTK4, no Electron, no web UI. Modal editing, buffers, splits, Git, terminals, LSP, search, email, AI — in one coherent application, built in phases.
Status: Phase 1 — Foundation + first milestone #
Working today:
- Native GTK4 window, dark minimal theme
- Rope text buffer with UTF-8 awareness and efficient edits
- Modal editing: NORMAL / INSERT / VISUAL / COMMAND (
:) modes - Motions:
h j k l w b e 0 $ ^ G gg {N}G+ arrow keys - Editing:
i a A I o O x X D C S dd cc u <C-r> yy p P v d y - Count prefixes (
3x,2dd), pending-sequence display - Buffers: open/save/next/prev, atomic saves (crash-safe)
- Command line:
:w :w <file> :q :q! :wq :e <file> :bnext :bprev+ all commands - Event bus, command registry, worker-pool job runner, logging
- Tests + benchmarks for buffer, keymap, modes, core, config
Next phases (§31 of the master plan): splits/tabs, Tree-sitter, LSP, ripgrep, file picker, command palette, integrated terminal, native Git client.
Build #
Requires Go 1.26+ and GTK4 development files:
# Debian/Ubuntu
sudo apt install libgtk-4-dev build-essential
# Fedora
sudo dnf install gtk4-devel
# Arch
sudo pacman -S gtk4
go build -o konan ./cmd/konan
./konan # empty editor
./konan main.go # open files
Run tests and benchmarks:
go test ./...
go test -bench . -benchmem ./internal/buffer/
Keys (Phase 1) #
| Mode | Keys |
|---|---|
| NORMAL | h j k l 0 $ ^ w b e G gg, i a A I o O, x X D C S dd cc u C-r, yy p P, v V d y, C-s |
| INSERT | printable text, <esc>, <C-w> (delete word), Enter, Tab |
| VISUAL | motions + d delete, y yank, <esc> |
| COMMAND | : then ex-commands, <cr> run, <esc> cancel |
Layout #
cmd/konan/ entry point
ui/ GTK4 view layer (no editing logic)
internal/
core/ editor state, events, commands, jobs
buffer/ rope buffer, cursor, undo
keymap/ key sequences, mapping trie
modes/ modal dispatch
config/ ~/.config/konan
themes/ color themes
logging/ leveled logs
docs/ architecture notes (see ARCHITECTURE.md)
See ARCHITECTURE.md for the decision log.
License #
To be decided before first public release.