A minimal floating text editor for macOS, designed for use as an external editor ($EDITOR / $VISUAL).
- Floating window (always on top)
- Syntax highlighting
@-mention file path completion- Translucent background with blur effect
- Save and exit with
Cmd+S - No Dock icon
brew tap wtshm/tap
brew install nanoeditgit clone https://github.com/wtshm/nanoedit.git
cd nanoedit
swift build -c release
cp .build/release/nanoedit /usr/local/bin/nanoedit <filepath>Set EDITOR or VISUAL in your shell profile:
export VISUAL="nanoedit"Add to ~/.claude/settings.json:
{
"env": {
"VISUAL": "nanoedit"
}
}Note
In Claude Code, the session output currently disappears after an external editor exits. Resizing the terminal restores it.
| Key | Action |
|---|---|
| Cmd+S | Save and exit |
| Cmd+W | Close (confirms if modified) |
| Escape | Close (confirms if modified) |
| Cmd+Q | Quit |
- macOS 13.0+ (Ventura)
MIT
