zrd-core 0.1.2

Core editing logic for Zrd text editor (platform-agnostic)
Documentation
  • Coverage
  • 15.58%
    12 out of 77 items documented0 out of 20 items with examples
  • Size
  • Source code size: 42.86 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.87 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 12s Average build duration of successful builds.
  • all releases: 13s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • douglance/zrd
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • douglance

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