lite-xl/data/core
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
..
commands Add PCRE to support regular expressions 2021-06-02 21:27:00 +02:00
doc Add PCRE to support regular expressions 2021-06-02 21:27:00 +02:00
command.lua Implement unicode character replacements 2021-04-01 18:05:59 +02:00
commandview.lua Do not close command view on open-file is file is invalid or it is a directory 2021-05-05 08:04:51 +02:00
common.lua Fix problem with filenames missing normalization 2021-05-24 15:58:49 +02:00
config.lua Improve user feedback for big directories (#223) 2021-05-27 08:28:58 +02:00
docview.lua support for font changing in the syntax highlighter 2021-05-26 19:16:56 +02:00
init.lua Scale fonts context menu (#246) 2021-06-03 22:49:37 +02:00
keymap-macos.lua Fix keymap binding on macos 2021-04-21 01:42:56 -07:00
keymap.lua Fix keymap binding on macos 2021-04-21 01:42:56 -07:00
logview.lua Added multiline support for LogView's messages 2020-05-06 00:06:27 +01:00
modkeys-generic.lua Add macos keybindings 2021-04-21 09:48:30 +02:00
modkeys-macos.lua Add macos keybindings 2021-04-21 09:48:30 +02:00
nagview.lua Implement multi-lines for NagView 2021-04-07 23:46:45 +02:00
object.lua Initial commit 2019-12-28 11:17:56 +00:00
regex.lua Add PCRE to support regular expressions 2021-06-02 21:27:00 +02:00
rootview.lua Scale fonts context menu (#246) 2021-06-03 22:49:37 +02:00
start.lua Update changelog and release number 2021-05-27 13:46:51 +02:00
statusview.lua Do not assume doc.indent_info is present 2021-03-05 23:47:36 +01:00
strict.lua Initial commit 2019-12-28 11:17:56 +00:00
style.lua Use FiraSans regular for UI 2021-05-27 13:49:33 +02:00
syntax.lua Added file-header pattern support to `syntax` 2020-06-08 16:11:22 +01:00
titleview.lua Make non-borderless mode work 2021-04-12 19:05:30 +02:00
tokenizer.lua Add PCRE to support regular expressions 2021-06-02 21:27:00 +02:00
view.lua Minor simplification of animation rate adjustment 2021-03-20 17:00:43 +01:00