Porting a text editor to Rust - Improved Config Files and Screen Resizing

Опубликовано: 21 Октябрь 2024
на канале: Uncle Scientist
155
3

This is a series of videos to port a basic text editor to Rust. You can find the C tutorial here: https://viewsourcecode.org/snaptoken/...

I'm going to be on twitch   / unclescientist   usually five times a week doing various streaming things.

First part of the stream is hacking together code that will allow "sections" in the init file. This was complicated a bit by the fact that the default values also have to follow the same rules.

Once I got that working, we quickly added some code to detect a window resize, although it's a bit more awkward that I would have wanted.

The last part of the stream starts looking at how to handle "soft" wrapping (wrapping long lines to the beginning of the next row). I get a bit lost in the weeds here, and end up not completing it. Cliffhanger!

The repo is here: https://github.com/UncleScientist/kil...



Come enjoy my beginner rust programming skills!

#rust #rustlang #texteditor #nvim