Wrote a small buffer based CLI editor in Typescript. Was a great experience to implement a small buffer, cursor class. It even supports undo. Also,...