gilo is a Go port of Antirez's kilo, except it's less than 350 lines of gofmt'd code (counted with wc -l main.go) and 0 dependencies :)
❯ wc -l main.go
347 main.go
❯ cat go.mod
module github.com/alexbathome/gilo
go 1.26.1
- gilo only provides minimal syntax highlighting for go files.
- it cheaps out on calculating the window size, leaning on the
ioctlTIOCSWINSZ. This may or may not work with your terminal emulator. - there's some pretty ugly code-golf smells in here, but oh well it's neat for < 350 lines :D
go run github.com/alexbathome/gilo@latestctrl-q - quit
ctrl-f - find
ctrl-s - save
curl -s https://raw.githubusercontent.com/alexbathome/gilo/refs/heads/main/main.go > /tmp/giloshowcase.go && go run github.com/alexbathome/gilo@latest /tmp/giloshowcase.gogo run github.com/alexbathome/gilo@latest <(curl -s https://raw.githubusercontent.com/alexbathome/gilo/refs/heads/main/main.go)it works on my mac, maybe it'll work on yours too 🤷❤️