site  contact  subhomenews

Lite XL text editor

October 31, 2024 — BarryK

I'm over the moon, this is a wonderful text editor!

Lite XL is a small binary, about 500KB, and requires very little system libraries. Compiled and installed in Scarthgap:

# ldd /usr/bin/lite-xl
linux-vdso.so.1 (0x00007ffec57be000)
libSDL2-2.0.so.0 => /usr/lib/libSDL2-2.0.so.0 (0x00007f7a96ebf000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00007f7a96e0d000)
libpcre2-8.so.0 => /usr/lib/libpcre2-8.so.0 (0x00007f7a96dad000)
libm.so.6 => /usr/lib/libm.so.6 (0x00007f7a96cd5000)
libc.so.6 => /usr/lib/libc.so.6 (0x00007f7a96b05000)
libz.so.1 => /usr/lib/libz.so.1 (0x00007f7a96aeb000)
libpng16.so.16 => /usr/lib/libpng16.so.16 (0x00007f7a96ab5000)
libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007f7a96ab0000)
/lib64/ld-linux-x86-64.so.2 => /usr/lib/ld-linux-x86-64.so.2 (0x00007f7a970ee000)
It has a Lua interpreter compiled into the binary, rather than require a system install of Lua. Rendering is done with SDL2, and it does a pretty good job of creating a GUI. Some of the plugins require 'yad', for example the "GUI file picker" uses yad to bring up a gtk file chooser.

img1

Here is the homepage:

https://lite-xl.com/

I downloaded the source code and plugins from here:

https://github.com/lite-xl/lite-xl

https://github.com/lite-xl/lite-xl-plugins

The inbuilt plugins at /usr/share/lite-xl/plugins:

autocomplete.lua autoreload.lua contextmenu.lua detectindent.lua drawwhitespace.lua language_c.lua language_cpp.lua language_css.lua language_html.lua language_js.lua language_lua.lua language_md.lua language_python.lua language_xml.lua lineguide.lua linewrapping.lua macro.lua projectsearch.lua quote.lua reflow.lua scale.lua tabularize.lua toolbarview.lua treeview.lua trimwhitespace.lua workspace.lua

I added these extra plugins, in the plugins folder:

gui_filepicker.lua language_diff.lua language_ini.lua language_make.lus language_nim.lua language_perl.lua language_po.lua language_rust.lua language_sh.lua

I have created a PET package for Scarthgap, will also compile it in Daedalus -- that latter one will be good for other pup-distros that are same vintage or newer than Debian Bookworm. Will upload the PETs soon and announce on the forum; probably here where we have been discussing text editors for Zig:

https://forum.puppylinux.com/viewtopic.php?t=12993

Lite XL will be builtin in the next releases of Easy Scarthgap and Daedalus.   

Tags: easy