Skip to content

wtshm/nanoedit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nanoedit

A minimal floating text editor for macOS, designed for use as an external editor ($EDITOR / $VISUAL).

Features

  • 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

Install

Homebrew

brew tap wtshm/tap
brew install nanoedit

Build from source

git clone https://github.com/wtshm/nanoedit.git
cd nanoedit
swift build -c release
cp .build/release/nanoedit /usr/local/bin/

Usage

nanoedit <filepath>

As default editor

Set EDITOR or VISUAL in your shell profile:

export VISUAL="nanoedit"

With Claude Code

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.

anthropics/claude-code#32467

Key Bindings

Key Action
Cmd+S Save and exit
Cmd+W Close (confirms if modified)
Escape Close (confirms if modified)
Cmd+Q Quit

Requirements

  • macOS 13.0+ (Ventura)

License

MIT

About

Minimal floating text editor designed for use as an external editor

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages