Porting a text editor to Rust - Relative Line Numbers and Config Files

Опубликовано: 19 Июнь 2026
на канале: Uncle Scientist
175
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.

Now that we have line numbers, it's time to make them "relative" to the current cursor position. I take a page out of neovim for the formatting.

Then we add the ability to set options in a config file, and allow a user to say which style of line numbering they want (off, absolute, relative).

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



Come enjoy my beginner rust programming skills!

#rust #rustlang #texteditor #nvim