A basic terminal text editor built with Zig for learning purposes. Inspired by the Kilo editor written by Antirez but took an unexpected turn.
git clone https://github.com/filippomenchini/zed.git
cd zed
zig build run -- zanlucaClean modular design with dependency injection:
- Terminal abstraction layer
- Action-based command system
- Separated input/output handling
- Explicit memory management
Zed uses "vim motions", modes and commands to operate.
- Use
Ito enter INSERT mode - Use
:to enter COMMAND mode - Use
ESCto get back to NORMAL mode - Move with
h j k l(left, down, up, right) just like in vim - Save file with
:w - Exit with
:q
- Build Your Own Text Editor - The original Kilo tutorial
- VT100 User Guide - Terminal escape sequences
- Zig Documentation - Language reference
The correct question is who is zanluca? Zanluca is a friend of mine that was present when I started coding this editor. I wanted a simple text file to test the program and I did not know what to write into it. Zanluca does NOT like setting the table for dinner, but his mom would be really proud if he really did.