r/programming • u/alexeyr • Feb 22 '21
Lite: A lightweight text editor written in Lua
https://github.com/rxi/lite14
u/vattenpuss Feb 22 '21
Lite takes only 20 megabytes of memory
Emacs used to be short for Eight Megs And Constantly Swapping, deriding how insane the resource requirements for it was.
6
u/nitrohigito Feb 23 '21
Looks unmaintained and feels pretty barebones to use. And by that, I don't mean to say that it's a minimalistic experience, unfortunately. It misses a bloody scrollbar for starters.
There appears to be an offshoot called lite-xl that seems actually maintained, but it's not that much better. It, too, misses a scrollbar for one. It is also unable to properly display non-latin filenames, just like lite.
The idea itself is cool though.
5
u/7sidedmarble Feb 22 '21
Is the rendering engine SDL?
0
Feb 22 '21
[deleted]
1
u/7sidedmarble Feb 23 '21
Really? That's interesting. If you know more, what's used for glyph rendering?
4
u/YeeOfficer Feb 22 '21
I use Lite on my Linux laptop, it is interesting. Reminds me of a more lightweight Atom.
4
u/LostZanarkand Feb 22 '21
Does it support LSP? A quick look over the repository and the plug-in repository did not show up anything regarding LSP
3
u/AttackOfTheThumbs Feb 22 '21
But what's the point when there's no extensions for the languages that you need?
-3
1
1
u/calrogman Feb 23 '21
Sounds light(!)
ns$ dmesg | grep mem
real mem = 50266112 (47MB)
avail mem = 34848768 (33MB)
ns$ ps up 62576 | cut -d' ' -f 2- | column -t
PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND
62576 0.0 4.6 1116 2252 p0 Tp 12:06AM 0:00.12 vi
ns$ fg
vi
:w !wc
358 2995 16038
!1
u/semiconductor12 Feb 23 '21
Thanks for recommending this lua project. I gave it a try and it turns out a really nice and lightweight text editor. I'll definitely try to use it from time to time. Its simple configuration and plugin interface are great.
0
u/Itchy_Total_3055 Feb 22 '21
I use Nova on the Mac, and it's absolutely wonderful. Worth the money.
6
u/alexeyr Feb 22 '21
Found via I Switched to Lite After Using Visual Studio Code for 3 Years, but the article isn't particularly informative.