Go to file
Francesco b046afccf9
Scale fonts context menu (#246)
* Retrieve scale plugin from lite-plugins

* New implementation of scale plugin and font C API

Introduce two new C API functions, renderer.font.get_size and set_size
respectively to get the font size and to set the size to a new value.

Using these functions we don't need to know the name of the font but
we can just change their size.

Adapt the scale plugin to use the new C API function with minor adaptations
in the logic.

Use smaller step to scale fonts.

Rename font_desc_free function, previous name was misleading as only the cached
resources are freed.

* Add contextmenu plugin from takase

From https://github.com/takase1121/lite-contextmenu

Adapted to show font scaling commands and find/replace commands.

i#	testing.lua

* Fix the cursor flickering with contextmenu

To avoid flickering of the cursor when using the context menu
we add a new function `core.request_cursor` that just take note
of the cursor requested.

The cursor will be actually changed only in root_view:draw() method
only when all the drawing operations are done. This means the cursor
will be changed only once per frame and only the most recent cursor
change request will take effect.

* Remove unneeded scale plugin return functions
2021-06-03 22:49:37 +02:00
.github Use explicit dispatch to trigger CI builds 2021-05-01 22:56:04 +02:00
data Scale fonts context menu (#246) 2021-06-03 22:49:37 +02:00
dev-utils Add macos access request for Downloads folder 2021-05-23 15:23:04 +02:00
lib/font_renderer Fix problem with glyph spacing in subpixel mode 2021-03-07 18:38:47 +01:00
licenses Moved documentation to the website repository, updated README (#247) 2021-06-03 18:57:26 +02:00
src Scale fonts context menu (#246) 2021-06-03 22:49:37 +02:00
subprojects Update subproject reference to libagg 2021-03-23 08:54:45 +01:00
.gitattributes Added `icon.inl linguist-vendored` to .gitattributes 2020-05-10 15:54:09 +01:00
.gitignore added .tar.gz files to .gitignore 2021-04-25 11:45:34 +02:00
LICENSE Switch to FiraSans and JetBrainsMono fonts 2021-05-22 15:09:54 +02:00
README.md Update README.md 2021-06-03 15:23:54 -04:00
build-packages.sh Update build package script for window 2021-05-06 09:36:39 +02:00
build.sh Add PCRE to support regular expressions 2021-06-02 21:27:00 +02:00
changelog.md Update changelog and release number 2021-05-27 13:46:51 +02:00
icon.ico Updated icon 2020-05-09 11:33:16 +01:00
icon.inl Updated icon 2020-05-09 11:33:16 +01:00
meson.build Fix: broken build-packages.sh (#251) 2021-06-03 21:43:09 +02:00
meson_options.txt Make usage of SDL renderer optional 2021-04-29 14:15:24 +02:00
res.rc Initial commit 2019-12-28 11:17:56 +00:00

README.md

Lite XL

Discord Badge Image

screenshot-dark

A lightweight text editor written in Lua, adapted from lite.

  • Get Lite XL — Download for Windows, Linux and Mac OS (notarized app).
  • Get plugins — Add additional functionality, adapted for Lite XL.
  • Get color themes — Add additional colors themes.

Please refer to our website for the user and developer documentation, including build instructions.

Lite XL has support for high DPI display on Windows and Linux and, since 1.16.7 release, it supports retina displays on macOS.

Please note that Lite XL is compatible with lite for most plugins and all color themes. We provide a separate lite-plugins repository for Lite XL, because in some cases some adaptations may be needed to make them work better with Lite XL. The repository with modified plugins is https://github.com/franko/lite-plugins.

The changes and differences between Lite XL and rxi/lite are listed in the changelog.

Overview

Lite XL is derived from lite. It is a lightweight text editor written mostly in Lua — it aims to provide something practical, pretty, small and fast easy to modify and extend, or to use without doing either.

The aim of Lite XL compared to lite is to be more user friendly, improve the quality of font rendering, and reduce CPU usage.

Customization

Additional functionality can be added through plugins which are available in the plugins repository or in the Lite XL plugins repository.

Additional color themes can be found in the colors repository. These color themes are bundled with all releases of Lite XL by default.

Contributing

Any additional functionality that can be added through a plugin should be done as a plugin, after which a pull request to the plugins repository can be made.

If the plugin uses any Lite XL-specific functionality, please open a pull request to the Lite XL plugins repository.

Pull requests to improve or modify the editor itself are welcome.

Licenses

This project is free software; you can redistribute it and/or modify it under the terms of the MIT license. See LICENSE for details.

See the licenses file for details on licenses used by the required dependencies.