迷い · NATIVE CODE EDITOR · v0.18.2

A small, fast, native code editor.

Mayoi draws its whole UI on the GPU in Go. No webview, no Electron — the packaged app is about 18 MB, with Vim mode, Git, a Ghostty terminal and remote SSH built in.

mayoi — ~/src/mayoi Go 1.27
Mayoi with three editor columns of Go source beside a live file tree

Three columns, a live file tree and the status line — one native window, drawn on the GPU.

mayoi v0.18.2
18 MBthe whole packaged app
0webviews or Electron processes
3platforms: macOS, Linux, Windows
MITopen source, written in Go
UTF-8 · LF · Go
01

Everything you reach for, already inside.

Not a plugin marketplace. The tools a working day needs ship in the binary.

Vim mode that keeps its promises.

Normal, insert and visual modes with motions, operators, text objects and counts. . repeats, registers and macros record, marks jump, and : runs real Ex commands.

  • motions, operators, text objects, counts
  • registers, macros and marks
  • :s, :g and :normal
vim.go — visual mode
Lines of Go selected in Vim visual mode inside Mayoi

Git, from gutter to graph.

Stage, commit, amend, undo, pull and push without leaving the window. Every change in one folded diff, inline or side by side, with changed words tinted.

  • peek, revert or stage from a gutter mark
  • commit graph with branches, tags and blame
  • AI commit messages that leave your secrets out
source control — side by side
Mayoi source control view with a side-by-side diff of every change

The terminal is Ghostty's.

libghostty-vt, the emulator behind Ghostty, in the bottom panel, at the side of the window, or in a tab of its own — beside the code it runs.

  • panel, side, or its own tab
  • rename terminals from the tab menu
  • programs report progress to the project rail
zsh — in a tab
A Ghostty terminal in a Mayoi tab beside a column of code

Remote SSH, nothing installed.

Open a folder on another machine through the system's ssh. Explorer, search, Git and terminals run on the host; its ports forward back to your laptop.

  • reads your ~/.ssh/config
  • host ports forward to this machine
  • recent hosts on the welcome page
ssh — dev@buildbox
A Mayoi window with a folder open on an SSH host
02

Take the tour.

Six stops, straight from the app's own screenshots. Pick one; the window follows.

mayoi — quick open
Mayoi's command palette listing commands with their shortcuts Search across the folder's files with each match in context A change peeked from the gutter, with revert and stage actions The commit graph with branches and tags beside a commit's diff A Markdown file and its live preview side by side Several projects on a rail at the left of one Mayoi window

Fuzzy files, :42 to a line, @ to a symbol, > to every command with its shortcut.

TWELVE THEMES · LIGHT & DARK

Dress it for the hour.

The quiet defaults, The Matrix with digital rain and the White Rabbit, Purple Gold, three Halloweens — and Claude, Qoder, Grok Bot and Cursor. Pick one; the window below wears it live.

wrap.go Purple Gold
 1  package editor
 2
 3  import "strings"
 4
 5  // wraps reports whether an editor wraps its lines.
 6  func (a *app) wraps(d *editor) bool {
 7      if d.wrap != nil && d.wrapGen == a.settings.WrapGen {
 8          return *d.wrap
 9      }
10      return a.settings.WordWrap
11  }
mainLn 6, Col 12UTF-8Go

Purple Gold — indigo night, gold leaf. The house style.

03

One command, then open a folder.

brew tap --custom-remote sorrycc/mayoi https://github.com/sorrycc/Mayoi.git
brew trust sorrycc/mayoi
brew install --cask mayoi
  • macOS 13 or later, Apple Silicon or Intel. Signed and notarized.
  • Recent Homebrew asks for brew trust once; on older Homebrew, skip that line.
  • Prefer a DMG? Releases has it — drag Mayoi to Applications.

The mayoi shell command

  • mayoi .open a folder, starting the app if needed
  • mayoi -g editor.go:42open a file at a line and column
  • mayoi -d a.go b.gocompare two files
  • mayoi -w note.mdwait until the file is closed
  • mayoi --remote host:/srcopen a folder on an SSH host
  • mayoi run go.line=42run any command by its identifier
04

Your hands stay on the home row.

⌘PQuick open
⇧⌘PCommand palette
⇧⌘FFind in files
⌘\Split right
⌃`Toggle terminal
⇧⌘VLive preview
⌥ZWord wrap
⇧⌘KDelete line

Every shortcut rebindable in the settings window, in VS Code's format. The full table lives in the README.

Stop waiting on your editor.

Eighteen megabytes, one native window, every tool inside. Open your first folder tonight.

brew install --cask mayoi