Live data from Hacker News

Lite XL: A lightweight text editor written in C and Lua

lite-xl.com

61–70 of 151 posts

Re: Lite XL: A lightweight text editor written in C and Lua

#61
post #37

I've wanted to write a small text editor for a while - cause I feel like most editors don't fit my workflow - but I've been a bit too busy with work. I don't really care about fancy features or extensions. Let me just create "tasks" (for compiling and such) and let me execute these tasks with a single button, then let me see the output from these tasks that eventually execute some application/compiler etc. That'll le…

Also been thinking this. What I want from a text editor is: - Like you said, running tasks with a button/keybind, easily customizable (Like I wanna open a config file, add a function/script, bind to key/create UI button, done, not make a "plugin" not compile an "extension" or anything like that) - Fuzzy finding/search - ripgrep and fzf can do that, so just bundle those I guess, or write my implementation of those. -…

This is also my general hope for lite.

- Configs in lite are all done in lua files, and there are two files that you can edit without ever having to create a plugin that are automatically loaded by the editor: your system wide user config (a lua file), and a project file (.lite_project). Both of these can bind keys, create buttons, add functions, and whatever you like, really.

- Fuzzy finding we can do, but it's not great. We're doing some work on this, but at the moment, we'll probably disappoint you.

- We should start pretty instantaneously on a vanilla config, though for large directory trees, there's an architectural issue that does make us take a bit longer, that hopefully will be resolved in a release or two. So if you have a smaller directory tree, then lite should be pretty quick; if it's large, perhaps hold off looking at it.

- lite offers fully portable releases, and infact, I have an all-in-one build that bundles everything into a single, mostly statically linked executable; it's generally very flexible about how things are deployed.

We tend to add almost all extra functionality via plugins; so if you don't want a particular feature, you can simply remove the plugin, and be done with it.

Re: Lite XL: A lightweight text editor written in C and Lua

#62
post #39

Earlier quoted context omitted.

Sounds like all you need is à plugin to call makefile targets from vim.

That is a method I've been toying with. But it's still such as hassle to quickly prototype something this way. It's also near impossible to get I J K L working as the cursor keys in VIM without having some major interference.

I haven't used it but there is :make which works with a Makefile.

Re: Lite XL: A lightweight text editor written in C and Lua

#63
I was just trying this today. Unfortunately, it's lsp plugin isn't in an acceptable enough state for my tastes yet.

Also it's doesn't open a proper open file dialog.

Lapce (which also isn't yet to ready to replace vscode for me yet) seems to be more complete at this point.

Re: Lite XL: A lightweight text editor written in C and Lua

#64
post #17

They have packages for pretty much every platform except Debian.

Debian takes forever when it comes to adding new packages. I'm talking years.

That doesn't prevent you from having a build path to create a .deb compatible with stable and making it available. In fact, that's a good way to improve your chances of getting into Debian proper.

Re: Lite XL: A lightweight text editor written in C and Lua

#65

Here's another one with a very small footprint: https://github.com/DigitalMars/med It's the one I use every day. The executable on Windows is a little over a meg. It also works on Linux and Mac.

Med appears to be a command line text editor, while this is a gui text editor... different beasts entirely.

Med is a text-mode editor.

If you want a command-line text editor, try the classic ed [1] :-D This was a kind of editor you might have to use with a teletype that prints on paper.

[1]: https://linux.die.net/man/1/ed

Re: Lite XL: A lightweight text editor written in C and Lua

#66
post #64
post #17

Earlier quoted context omitted.

Debian takes forever when it comes to adding new packages. I'm talking years.

That doesn't prevent you from having a build path to create a .deb compatible with stable and making it available. In fact, that's a good way to improve your chances of getting into Debian proper.

If anyone's interested, I do have a `.deb` build here; but it's not an official one: https://github.com/adamharrison/lite-xl-simplified/releases/...

And I haven't tested it super hard, and it's only the 64-bit build.

Re: Lite XL: A lightweight text editor written in C and Lua

#67
post #57
post #41

Earlier quoted context omitted.

Maybe you’d have more success with Emacs? You could write elisp functions for your tasks and bind them to your prefered keys, with or without Evil.

Actually, using Org mode and the Hyperbole package in Emacs solves all the problems listed in easy to use ways except you get much more editing dunctionality rather than just the features requested. Don’t reinvent the wheel; just learn something that runs everywhere and solves your problems. You start Emacs once and then rapidly edit files from the command-line by calling emacsclient, not restarting Emacs.

Emacs is a great software ecosystem, with a very.flexible editor built in.

With evil-mode, there's no excuse not to try it even if you find Vim's way of controlling input superior (which it as well may be).

Re: Lite XL: A lightweight text editor written in C and Lua

#68
post #55

Earlier quoted context omitted.

Thanks a lot! Edit: just tried it, it works. But unfortunately it only wraps on character, so it won't work for me now. As a writer I was looking for something more lightweight than VS code, and Lite XL looks promising. I'll keep an eye on it.

This is configurable. I use it in my android fork that I use for creative writing, `write-xl` (in case you're interested, here: https://github.com/adamharrison/write-xl ; not really ready for public consumption). You can set the word wrapping configuration via your user plugin by doing: config.plugins.linewrapping.mode = "word" The full list of options is here: https://github.com/lite-xl/lite-xl/blob/master/data/plug…

Thanks so much! FWIW, I actually tried looking for how to do that but couldn't find it. It's cool that there are so many knowledgeable people here :D

Re: Lite XL: A lightweight text editor written in C and Lua

#69
post #55

Earlier quoted context omitted.

This is configurable. I use it in my android fork that I use for creative writing, `write-xl` (in case you're interested, here: https://github.com/adamharrison/write-xl ; not really ready for public consumption). You can set the word wrapping configuration via your user plugin by doing: config.plugins.linewrapping.mode = "word" The full list of options is here: https://github.com/lite-xl/lite-xl/blob/master/data/plug…

Thanks so much! FWIW, I actually tried looking for how to do that but couldn't find it. It's cool that there are so many knowledgeable people here :D

If you want a bit better discoverability; you may want to try the `addons` release; it comes with a settings plugin that lays out all the settings in GUI so you don't have to go through digging through the source. Could be helpful if you just wanna poke around.
Post reply on HN