by alisnic · 13y ago · 0 comments
The editor is never meant to be used by anyone except me. But if someone finds it nice, I don't mind sharing it. Plus it's the only serious example of termbox library usage (I wrote it too).
If this is true, do you still find the performance satisfactory when editing large-ish files (tens of thousands of lines)?
It used to be that buffer representation for general-purpose editing was kind of a Real Problem, so it's interesting if a basic linked list of strings representing lines cuts it, these days.
In the case of this particular itch, there are many small statically linked editors, some of them quite powerful. I don't think a small emacs was ever spotted, but the original vi (not vim) is often statically linked and present in /bin in Linux installs (it's a rescue thing).
I'd much rather have tab size be set to get smaller based on the number of indentations/longest line.
Now, some people will claim that having 8-character indentations makes the code move too far to the right, and makes it hard to read on a 80-character terminal screen. The answer to that is that if you need more than 3 levels of indentation, you're screwed anyway, and should fix your program.
And I think I kinda agree with this.
https://www.youtube.com/watch?v=gb_qHP7VaZE
(I bet half of you knows what movie clip that is before clicking)