lite-xl/data/plugins
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
..
autocomplete.lua Introduce new plugin versioning tag mod-version 2021-05-05 22:38:29 +02:00
autoreload.lua Introduce new plugin versioning tag mod-version 2021-05-05 22:38:29 +02:00
contextmenu.lua Scale fonts context menu (#246) 2021-06-03 22:49:37 +02:00
detectindent.lua Reduce number of used lines in detectindent 2021-05-27 16:25:49 +02:00
language_c.lua support for multiple groups in one pattern (#196) 2021-05-19 22:35:28 +02:00
language_css.lua Introduce new plugin versioning tag mod-version 2021-05-05 22:38:29 +02:00
language_html.lua Introduce new plugin versioning tag mod-version 2021-05-05 22:38:29 +02:00
language_js.lua add `of` keyword to language_js.lua and improve js string syntax highlighting in (#186) 2021-05-17 08:56:21 +02:00
language_lua.lua Improved Lua syntax (#201) 2021-05-20 19:02:40 +02:00
language_md.lua Introduce new plugin versioning tag mod-version 2021-05-05 22:38:29 +02:00
language_python.lua Introduce new plugin versioning tag mod-version 2021-05-05 22:38:29 +02:00
language_xml.lua Introduce new plugin versioning tag mod-version 2021-05-05 22:38:29 +02:00
macro.lua Introduce new plugin versioning tag mod-version 2021-05-05 22:38:29 +02:00
projectsearch.lua Add PCRE to support regular expressions 2021-06-02 21:27:00 +02:00
quote.lua Introduce new plugin versioning tag mod-version 2021-05-05 22:38:29 +02:00
reflow.lua Introduce new plugin versioning tag mod-version 2021-05-05 22:38:29 +02:00
scale.lua Scale fonts context menu (#246) 2021-06-03 22:49:37 +02:00
tabularize.lua Introduce new plugin versioning tag mod-version 2021-05-05 22:38:29 +02:00
toolbarview.lua Introduce new plugin versioning tag mod-version 2021-05-05 22:38:29 +02:00
treeview.lua Implement lazy loading of directories 2021-05-26 14:22:10 +02:00
trimwhitespace.lua Introduce new plugin versioning tag mod-version 2021-05-05 22:38:29 +02:00
workspace.lua Introduce new plugin versioning tag mod-version 2021-05-05 22:38:29 +02:00