A Rust implementation of the Kilo text editor tutorial: https://viewsourcecode.org/snaptoken/kilo/index.html
Go to file
Timothy Warren d45911767d Fix keyword highlighting off-by-one errors, to fix keyword highlighting 2019-09-11 10:37:18 -04:00
src Fix keyword highlighting off-by-one errors, to fix keyword highlighting 2019-09-11 10:37:18 -04:00
.gitignore Ugly progress commit 2019-08-22 14:25:18 -04:00
Cargo.lock Another ugly progress commit 2019-09-06 16:40:31 -04:00
Cargo.toml Another ugly progress commit 2019-09-06 16:40:31 -04:00
README.md Ugly progress commit 2019-09-06 13:24:29 -04:00

README.md

Oxidized Kilo

An experimental reimplementation of the Kilo tutorial with a Rust implementation.

Implementation notes:

  • The editor prefix has been removed from all the editor methods. Since this implementation uses impls on a shared Editor struct, the prefix is redundant
  • Any C equivalent functionality based on memory allocating/deallocating, or other manual book-keeping is instead implemented in a more idiomatic Rust fashion.
  • Row structs are referenced by their index in the Editor struct, rather than as a direct reference in method calls. This generally simplifies dealing with the rules of Rust (borrow checker).

Known issues:

  • The cursor is invisible :(