zrd-core

Crates.iozrd-core
lib.rszrd-core
version0.1.2
created_at2025-12-31 16:04:51.290944+00
updated_at2026-01-01 11:23:36.085578+00
descriptionCore editing logic for Zrd text editor (platform-agnostic)
homepage
repositoryhttps://github.com/douglance/zrd
max_upload_size
id2014932
size43,364
doug (douglance)

documentation

README

zrd

A fast, minimal text editor for the terminal. That's it.

Install

cargo install zrd

Use

zrd myfile.txt      # Edit a file
zrd                 # Edit default scratch file (~/.config/zrd/default.txt)

Press Esc to quit. Changes save automatically.

Why zrd?

  • Fast - Opens instantly, no lag
  • Minimal - Does one thing: edit text
  • Familiar - Standard keyboard shortcuts (Ctrl+Z, Ctrl+A, etc.)
  • Mouse support - Click to position, drag to select, scroll wheel works
  • Auto-save - Never lose work

Keyboard Shortcuts

Action Keys
Quit Esc or Ctrl+W
Undo / Redo Ctrl+Z / Ctrl+Shift+Z
Select all Ctrl+A
Start/End of line Home / End or Cmd+←/→
Word left/right Alt+←/→
Delete word Alt+Backspace / Alt+Delete
Delete line Ctrl+Shift+K
Move line up/down Alt+↑/↓

Full list: FEATURES.md

Mouse

  • Click - Position cursor
  • Drag - Select text
  • Scroll - Navigate document

GUI Version (macOS)

There's also a native GUI version using GPUI:

cargo install zrd-gui
zrd-gui myfile.txt

Both share the same editing engine and can edit the same file simultaneously with live sync.

Terminal Setup

If Alt+arrow keys don't work:

  • Terminal.app: Preferences → Profiles → Keyboard → "Use Option as Meta key"
  • iTerm2: Preferences → Profiles → Keys → Left Option → "Esc+"

Build from Source

git clone https://github.com/douglance/zrd.git
cd zrd
cargo install --path zrd

License

MIT

Commit count: 0

cargo fmt