Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gilo

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

disclaimer/excuses

  1. gilo only provides minimal syntax highlighting for go files.
  2. it cheaps out on calculating the window size, leaning on the ioctl TIOCSWINSZ. This may or may not work with your terminal emulator.
  3. there's some pretty ugly code-golf smells in here, but oh well it's neat for < 350 lines :D

usage

go run github.com/alexbathome/gilo@latest

key map

ctrl-q - quit
ctrl-f - find 
ctrl-s - save

example with highlighting

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.go

example without highlighting:

go 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 🤷❤️

About

< 350 LOC golang text editor inspired by Antirez's kilo

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages