maksimKorzh / ed

The standard Linux text editor implementation in Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ed

The standard Linux text editor implementation in Go

Implementation details

Current implementation is based on the source code from
"The software tools in Pascal" by Brian Kernighan. On top
of the original version it adds command "t" - copy block
of text to a given line and also commands "y" - yank and
"x" - put. The limitation is that global commands are not
implemented however the behaviour of "s" (substitute) command
is indeed global, so you can say "1,$s/pat/sub/" and have the
pattern "pat" being replaced with "sub" string. Also "!" command is
not available since I simply don't need it

Video demo

https://www.youtube.com/watch?v=7g4x2wNsoa0

About

The standard Linux text editor implementation in Go


Languages

Language:Go 99.4%Language:Shell 0.6%