https://github.com/eckertalex/edo
edo - go clone of ed, the classic Unix line editor
https://github.com/eckertalex/edo
clone ed editor go unix
Last synced: 8 months ago
JSON representation
edo - go clone of ed, the classic Unix line editor
- Host: GitHub
- URL: https://github.com/eckertalex/edo
- Owner: eckertalex
- License: mit
- Created: 2024-11-10T23:21:22.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-02T09:21:34.000Z (over 1 year ago)
- Last Synced: 2025-10-12T20:31:56.078Z (8 months ago)
- Topics: clone, ed, editor, go, unix
- Language: Go
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# edo
Go clone of [ed(1)](https://man.openbsd.org/ed.1), the classic Unix line editor
## Usage
### Basic Operation
```bash
# Start with empty buffer
edo
# Edit a file
edo filename.txt
# Start with custom prompt
edo -p "* "
```
### Command Line Flags
- `-p string`: Set custom prompt (default "\*")
- `-v`: Display version information and exit
### Example Session
```
$ edo
*a
hello world
line two
.
*w file.txt
2
*q
```
Please make sure to update tests as appropriate.
## TODO
- [ ] 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