Go clone of ed(1), the classic Unix line editor
# Start with empty buffer
edo
# Edit a file
edo filename.txt
# Start with custom prompt
edo -p "* "
-p string
: Set custom prompt (default "*")-v
: Display version information and exit
$ edo
*a
hello world
line two
.
*w file.txt
2
*q
Please make sure to update tests as appropriate.
- print buffer size on load
- don't show prompt when appending/inserting
- support basic error messages
- enable showing error messages with H similar to P
- Line ranges (e.g.,
1,5p
) - Search commands (
/pattern/
) - Substitute command (
s/old/new/
) - Copy/move lines
- Undo functionality