3 ms·
Cool. Compiled easily, made a binary that does look like a text editor, let me make new files and edit an existing one. Only linked against libc, about a thousa
by JonChesterfield 3y ago
Cool. Compiled easily, made a binary that does look like a text editor, let me make new files and edit an existing one. Only linked against libc, about a thousand lines of C.
So yeah, that is indeed a working text editor that doesn't link against ncurses and the like. Smaller than I would have expected it to be.
- kamranjon 3y agoMost of that is probably attributable to being based on Kilo: https://github.com/antirez/kilo https://github.com/antirez/kilo - a tiny text editor written by antirez who notably also created Redis. Antirez has a bunch of really interesting side projects if you dig into their github repo.
- springogeek 3y agoThere's a "thanks" section at the end of the README which links to it, from what I can see.
- kamranjon 3y agothanks! i'll update my comment
- garbagepatch 3y agoThey also thanks viewsourcecode.org but don't directly link to their excellent tutorial on how to build Kilo yourself: https://viewsourcecode.org/snaptoken/kilo/ https://viewsourcecode.org/snaptoken/kilo/
- torh 3y agoI like the extensive way Antirez has commented the data structures (and the rest of the codebase), something that was missing in the ptext code.
- canadianfella 3y ago[dead]
- rahen 3y agoIndeed. Also the default editor for ELKS (Linux for PC/XT and ATs).
- linhns 3y agoYep. Fit for my sole purpose of using other editors: Editing vim Makefile when I decide to recompile.