Easyedit

command module
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2026 License: MIT Imports: 7 Imported by: 0

README

🧩 EasyEdit

Build Status Go Version License Release Platforms

🤖 Vibe Coding ExperimentNo human-written code allowed.
Every line of this editor is authored by AI agents.
See who contributed →

EasyEdit is a hybrid terminal text editor that offers stream processing capabilities — functioning both as a full‑featured TUI editor and a non‑interactive sed‑style filter.


✨ Features

Mode Description
🖥️ TUI Editor Full terminal UI with syntax highlighting for 200+ languages, multi‑cursor editing, undo/redo, and command mode
Stream Mode Non‑interactive stdin/stdout processing — ideal for CI/CD, shell pipelines, and in‑place edits
📦 Gap Buffer Efficient text storage for large files
🔁 Undo/Redo Full history stack (Ctrl+Z / Ctrl+Y)
🌍 Cross‑Platform Pre‑built binaries available for 24+ platforms, including Linux, macOS, Windows, FreeBSD, ARM, RISC‑V, and more

🚀 Quick Start

📥 Installation

Option 1: Download Prebuilt Binary (Recommended)
Visit the Releases page – binaries are available for Linux, macOS, Windows, and many more.

Option 2: Go Install

go install github.com/0xA672/Easyedit@latest

Option 3: Build from Source

git clone https://github.com/0xA672/Easyedit.git
cd Easyedit
go build -o easyedit .

▶️ Usage Examples
Interactive Mode
easyedit                # Open an empty buffer
easyedit main.go        # Open an existing file
Stream Mode (sed‑like)
# Replace text in a pipeline
echo "hello world" | easyedit -s -e 's/world/Go/g'

# Delete lines matching a pattern
cat log.txt | easyedit -s -e '/DEBUG/d'

# In-place file editing
easyedit -s -i -e 's/foo/bar/g' file.txt

📚 Documentation

Detailed guides are available in the /docs folder:


🤝 Contributors Signature Wall

Every AI model that contributed to this project:

Model Provider Contribution
DeepSeek-V4-Flash DeepSeek AI Core contributor – syntax highlighting optimization, Vix language support
Qwen3.5 Alibaba Code review & maintenance
GPT-4.1 OpenAI Architecture design
Claude 4.7 Anthropic UI enhancements, Vix language support, Stream mode, multi‑language docs
Doubao ByteDance Documentation annotations

🧠 Why “EasyEdit”?

  • Easy to use interactively, and easy to script in pipelines.
  • Built entirely by AI – a living experiment in vibe‑driven development.
  • Lightweight, fast, and portable — a single binary.

Made with ❤️ using Go and Tcell

Documentation

Overview

EasyEdit — Hybrid terminal text editor.

Usage:

easyedit Open a blank file easyedit <filename> Open specified file

Shortcuts:

Ctrl+S Save Ctrl+Q Quit Ctrl+F Search Ctrl+H Replace Ctrl+A Select All Ctrl+Z Undo Ctrl+Y Redo Ctrl+X Cut Ctrl+C Copy Ctrl+V Paste Alt+W Toggle soft wrap : Enter command mode

Command mode (press : to enter):

:q Quit :q! Force quit (no save) :w Save :wq Save and quit :w <path> Save as :e <path> Open file :10,20d Delete lines 10-20 :%s/old/new/g Replace all :3,5s/old/new Replace in range :set nu Show line numbers :set nonu Hide line numbers :42 Jump to line 42 :uninstall Remove editor binary, config, and backup files

Config file (auto-loaded):

Linux/macOS: ~/.easyedit.toml Windows: %APPDATA%/easyedit/config.toml

Dependencies:

  • github.com/gdamore/tcell/v2 (terminal handling)
  • github.com/alecthomas/chroma/v2 (syntax highlighting)
  • github.com/atotto/clipboard (system clipboard)
  • github.com/BurntSushi/toml (config parsing)
  • github.com/mattn/go-runewidth (character width)

Directories

Path Synopsis
Package clipboard provides cross-platform clipboard access via OS commands.
Package clipboard provides cross-platform clipboard access via OS commands.
Package command implements vi/ex-style command parsing and execution.
Package command implements vi/ex-style command parsing and execution.
Package config manages editor configuration.
Package config manages editor configuration.
Package document implements Gap Buffer based text storage and editing.
Package document implements Gap Buffer based text storage and editing.
Package highlight implements syntax highlighting.
Package highlight implements syntax highlighting.
Package ui implements the terminal text editor user interface.
Package ui implements the terminal text editor user interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL