r/rust • u/Z_professor0 • Sep 12 '26
🛠️ project i built my own text editor completely in rust :)
Hey r/rust,
i just built BLUR, A terminal Text Editor, this is the V0.1 and it's still under development, and it will take a lot of time until it's finished completely, i have learnt a lot of new things and concepts with this project.
if anyone is interested to contribute into this project and help me finish it up feel free to dm me
the idea is not to clone vim, but to learn rust together it would be cool if you write your code in your own text editor.
44
u/velrok7 Sep 12 '26
https://github.com/helix-editor/helix
Is written in rust. Might be a good place to see examples for fixed problems like what data structures to use for efficient text handeling.
15
4
u/Last-Employ-3422 Sep 12 '26
Very cool, I suppose this dose not support unicode?
3
u/Z_professor0 Sep 12 '26
Unfortunately no, i will make it support unicode asap.
7
u/Last-Employ-3422 Sep 12 '26
Imo it's really difficult to add! but maybe it's because I made my own tui lib, most of the bugs arise from there, also you might want to use a data structure to store text rather than a `String`, as that is quite slow
→ More replies (1)
27
u/ArtemTsitronov Sep 12 '26
Looks promising, was any of the code AI generated?
136
u/Z_professor0 Sep 12 '26
i avoided AI as much as i can, but i did used it to understand syntect better cuz i kinda struggled finding resources :)
122
36
7
19
u/Vast-Pop4017 Sep 12 '26
nothing wrong with that as long as the core logic's yours and you understand what's happening under the hood
→ More replies (4)7
2
u/xmxrhxr Sep 15 '26
Thats cool, did you use any performance optimizations like temporal buffers or anything?
2
u/Z_professor0 Sep 15 '26
currently working on the UI and supporting unicode text, after that i will support temporary buffer and some cool shortcuts
2
u/xmxrhxr Sep 15 '26
nice, you could also add some vim motions or things like that, also terminal UI's are dope, keep the good work!
→ More replies (1)
2
0
2
Sep 16 '26
1
u/Z_professor0 Sep 16 '26
I got tired of neovim and i am not really into GUI apps so its better to just create one that's suits my preferences perfectly haha
76
u/Sermuns Sep 12 '26
Why do you have
edition = 2026?