jgmdev
79908baed6
regex: properly call pcre2_jit_compile
2022-12-28 19:40:20 -04:00
Jefferson González and GitHub
870d685b59
contextmenu: adjust y positioning if less than zero ( #1268 )
...
* use clamp for both x and y coords
2022-12-28 02:51:24 -04:00
Jefferson González and GitHub
141d00795c
dirmonitor: use pipes on fsevents ( #1274 )
...
As suggested by Guldoman this change introduces the usage
of pipes to allow blocking the get changes call until any
file system changes are received, which now properly reduces
the cpu usage on idle to 0%.
This change better fixes #1237
2022-12-27 23:07:12 -04:00
Jefferson González and GitHub
5fa7dabd34
dirmonitor: fix high cpu usage, fixes #1237 ( #1271 )
2022-12-27 18:23:39 -05:00
jgmdev
fc891ef3df
Updated changelog.md
2022-12-22 12:28:21 -04:00
jgmdev
0ab7fe9311
core regex: use backward compatible lua_newuserdata
2022-12-21 00:54:12 -04:00
Jefferson González and GitHub
902539b97a
trimwhitespace: expose functionality and extra features ( #1238 )
2022-12-20 18:13:56 -04:00
Jefferson González and GitHub
3c64c32379
core: ported regex.gsub to faster native version ( #1233 )
...
* added regex.gmatch iterator and other fixes
* fixed issues reported by Guldoman
* push strings with fixed len just in case for binary safety
* added limit to regex.gsub and use pushinteger
* added description to regex.gsub limits param
* replaced substitutions regex description for correctness
* ignore negative limits on regex.gsub
2022-12-20 17:46:37 -04:00
Jefferson González and GitHub
e152db2cce
plugins projectsearch: expose its functionality ( #1235 )
2022-12-14 11:53:20 -04:00
Jefferson González and GitHub
ef4ca03eae
meson: updated all subproject wraps ( #1214 )
2022-12-01 19:18:28 -04:00
jgmdev
7bb86e16f2
docs api: added dirmonitor
2022-11-30 01:14:40 -04:00
jgmdev
563fa7f29e
docs api: minor corrections
2022-11-30 01:11:13 -04:00
jgmdev
0373d29f99
statusview: respect right padding of item tooltip
...
When the tooltip was rendered on the last item of right items the right
padding was not properly getting accounted as part of the tooltip width.
This commit also fixes:
* Passing StatusView to item.get_item() instead of StatusView.item
* Some adjustments to annotations.
2022-11-24 12:34:49 -04:00
Jefferson González and GitHub
c8e525c126
Merge pull request #1201 from takase1121/PR/font-load-utf8
...
Load fonts with UTF-8 filenames
2022-11-15 23:27:03 -04:00
Jefferson González and GitHub
469a4fed3e
Merge pull request #1202 from Guldoman/PR_comment_subsyntaxes
...
Use subsyntax info to toggle comments
2022-11-15 11:45:42 -04:00
jgmdev
80f022d8ff
meson: bump minimum required version to 0.56
2022-11-14 12:56:15 -04:00
jgmdev
acebbfd88a
linewrapping: fix enabled always by mistake introduced with #1190
2022-11-07 13:59:13 -04:00
jgmdev
fb43e6f9e6
traceback: some lua versions do not support message as nil
2022-11-07 12:48:09 -04:00
Jefferson González and GitHub
9c7304f555
highlighter: autostop co-routine when not needed ( #881 )
...
* highlighter: autostop co-routine when not needed
* applied @Guldoman suggestions
2022-11-06 03:38:10 +01:00
Jefferson González and GitHub
b8a4f729df
tokenizer: remove the limit of 3 subsyntaxes depth ( #1186 )
...
* tokenizer: remove the limit of 3 subsyntaxes depth
Make the state a string of bytes instead of a 32bits integer to be able
to have deeper subsyntax support. Fixes issues with syntax files like
the one for PHP that was already hitting more than 3 subsyntaxes depth.
* remove unnecesary call to set_subsyntax_pattern_idx
* fixed wrong word on comments
2022-11-03 18:56:20 -04:00
69bccf6fcf
docview: support gutter click selection, fixes #1116 ( #1169 )
...
* docview: support gutter click selection, fixes #1116
* Added missing call to parent on_mouse_pressed
Also fixed call to selections when `shift` is pressed.
* change to arrow instead of hand
Co-authored-by: Adam <adamdharrison@gmail.com >
2022-11-01 19:34:23 -04:00
jgmdev
a619054951
scripts build: properly detect if cross-compiling
2022-10-30 19:05:17 -04:00
Jefferson González and GitHub
d89d1e6d98
ci release: add macos arm64 support ( #1179 )
2022-10-30 11:48:20 -04:00
jgmdev
0030c69524
plugin autocomplete: update partial on manual trigger
2022-10-25 17:20:31 -04:00
jgmdev
3ccd696ffc
plugin api: added missing param on lua_dump
2022-10-24 11:40:47 -04:00
jgmdev
76f55aefe8
resources: .desktop inode/directory mime type
...
This allows associating lite-xl on linux with folders for the open with
option of graphical file browsers.
2022-10-22 21:10:45 -04:00
Jefferson González and GitHub
af6c4bc152
core syntax: strip the path from filename on syntax.get ( #1168 )
2022-10-22 20:04:54 -04:00
Jefferson González and GitHub
f02b3c46e6
Merge pull request #1167 from jgmdev/PR/new-lines
...
* plugin drawwhitespace: allow newline substitution
* docview: do not render newline fixes #1164
2022-10-22 19:56:43 -04:00
jgmdev
3da6833249
docview: do not render newline fixes #1164
2022-10-21 13:56:23 -04:00
jgmdev
261292c6aa
plugin drawwhitespace: allow newline substitution
2022-10-21 13:53:42 -04:00
jgmdev
3c752f86f3
core renderer: increased max font fallbacks to 10
2022-10-19 21:12:04 -04:00
jgmdev
1708462f4c
core renderer: fixed small issue introduced on #1145
2022-10-19 21:11:29 -04:00
jgmdev
97ba91af8b
changelog: added latest changes
2022-10-16 00:11:40 -04:00
jgmdev
5aaa5ab273
plugin lineguide: be strict on drawing to DocView
2022-10-15 21:56:34 -04:00
jgmdev
42ac231f01
core utf8: fix license text
2022-10-13 11:29:37 -04:00
Jefferson González and GitHub
f89088d0ec
dirmonitor: add watch to subdirs on file limit mode ( #1155 )
2022-10-13 00:37:52 -04:00
Jefferson González and GitHub
48c800cde7
dirmonitor: added missing mutex initialization ( #1150 )
2022-10-12 10:31:26 -04:00
Jefferson González and GitHub
0fc793d1ae
Add on_scale_change event to View ( #1146 )
...
* core view: emit on_scale_change event
* core titleview: reconfigure hit_test on rescale fixes #1144
2022-10-11 14:44:32 -04:00
Jefferson González and GitHub
214c9d6287
dirwatch: exit coroutine if project not open anymore to properly gargage collect it ( #1142 )
2022-10-11 13:22:44 -04:00
jgmdev
ec6d0532c8
release: linux build in ubuntu 18.04 fixes #1147
...
This change also properly fixes the double release creation issue due to
the upload files process not sepcifying the draft flag.
Also added update tag step so the tag gets updated to latest commit and
is easier to kick new builds for pre releases without having to create a
new release.
2022-10-11 00:02:12 -04:00
jgmdev
63885cb2d6
changelog: updated to include some of latest changes
2022-10-10 22:41:58 -04:00
Jefferson González and GitHub
a7888e96ea
Add fsevents backend to dirmonitor ( #1141 )
...
* dirmonitor: added backend reporting of watch mode
* dirmonitor: added fsevents backend for macos
2022-10-10 20:40:41 -04:00
Jefferson González and GitHub
3083f09fac
meson: updated lua wrap to v5.4.4 ( #1133 )
2022-10-03 11:53:37 -04:00
jgmdev
a65a2b293a
plugins language_md: fixed some regressions, added caddyfile support
2022-10-02 21:45:54 -04:00
Jefferson González and GitHub
ba0a454c97
system: added raise_window() ( #1131 )
2022-09-29 11:31:55 -04:00
Jefferson González and GitHub
a0164d5902
language_md: don't require space at end on '_', '__', '___' ( #1129 )
2022-09-28 22:44:42 -04:00
jgmdev
e0e928c31e
gh workflow: don't make release on tag pushes to prevent double release when executed from github web interface.
2022-09-25 18:20:08 -04:00
jgmdev
42eeaf44a5
updated changelog
2022-09-25 17:39:36 -04:00
jgmdev
e2884895ce
core start: added missing ';' to package.cpath
2022-09-25 17:13:07 -04:00
Jefferson González and GitHub
9f1294fea2
Added Release Workflow and Fixed some build script issues ( #1013 )
...
* ci linux: make builds properly static
* test workflow_dispatch
* install wayland-protocols
* append missing portable
* make debug builds by default
* auto enable some video subsystems for proper wayland support
* added release workflow
* make line shorter in innosetup bash script
* disable some video subsystems on darwin and windows
* fix default build dir on msys
* print output of ntldd
* properly set msys arch
* disable opengl on windows
* copy mingw dependencies on package
* innosetup script copy from generated package dir
* changed license to reflect team work
* adjusted the ci windows install name
* add all language plugins to addons
* disabled generation of source tarballs
* removed language_cpp from plugins repo
* enabled lua utf8 patch for windows build
* added open_ext to addons
* moved away from deprecated virtual environments
* make minimal build and with addons
* simplified CI build.yml
2022-09-25 16:59:01 -04:00
Jefferson González and GitHub
a640360d0d
api: expose api_load_libs to native plugins ( #1125 )
...
This function is currently needed for the threading plugin.
2022-09-22 20:30:24 -04:00
jgmdev
a4713505f0
docs: documented ARCH global.
2022-09-22 12:37:07 -04:00
jgmdev
4134b30ffd
core: remapped core:restart to ctrl+alt+r
...
Commonly `ctrl+shift+r` is used in most editors for find and
replace operations, also the regexreplacepreview.lua plugin makes
a more appropriate use of this binding.
2022-09-16 11:31:05 -04:00
Jefferson González and GitHub
5a80d3547e
contextmenu: resize on scale changes ( #1117 )
2022-09-15 00:57:45 -04:00
Jefferson González and GitHub
862ed9ad6a
plugin scale: added option to set default scale ( #1115 )
2022-09-15 00:54:44 -04:00
jgmdev
bead59a898
autocomplete: properly replace current partial symbol
2022-09-12 22:41:50 -04:00
Jefferson González and GitHub
334ef427c1
Merge pull request #1105 from jgmdev/PR/sdl-update
...
updated sdl2 wrap to 2.24
2022-09-07 18:45:19 -04:00
jgmdev
20be2e4f7d
updated sdl2 wrap to 2.24
2022-08-24 01:04:09 -04:00
Jefferson González and GitHub
f07b62f852
Merge pull request #1100 from Guldoman/PR_fix_path_suggest
...
Remove dot slash from suggested paths in `common.path_suggest`
2022-08-17 13:59:19 -04:00
Jefferson González and GitHub
76f71b2846
Merge pull request #1098 from Guldoman/PR_command_predicate_params
...
Allow command predicates to manage parameters, allow overwriting commands
2022-08-16 18:20:30 -04:00
Jefferson González and GitHub
cefb6787f8
Merge pull request #1101 from benwalksaway/python_async_await
...
language_python: add syntax support for async/await
2022-08-16 16:23:15 -04:00
Jefferson González and GitHub
e4bef5c5b6
Merge pull request #1080 from jgmdev/PR/fix-commandview-caret
...
CommandView: do not change caret size with config.line_height
2022-07-17 12:29:52 -04:00
jgmdev
c7781a76a9
CommandView: do not change caret size with config.line_height
2022-07-15 11:27:27 -04:00
Jefferson González and GitHub
86d45458f8
Merge pull request #1070 from Guldoman/PR_get_selections_swap_return
...
Make `Doc:get_selection[s]` return if the selection was actually sorted
2022-07-13 11:13:43 -04:00
Jefferson González and GitHub
dc88b1b56d
Merge pull request #1075 from Guldoman/PR_StatusView_add_item_table
...
Make `StatusView:add_item` accept a table
2022-07-13 01:32:14 -04:00
Jefferson González and GitHub
e646f2fb28
Merge pull request #1065 from Guldoman/PR_log_size
...
Increase `config.max_log_items`, add a scrollbar and optimize `LogView`
2022-07-05 18:07:33 -04:00
Jefferson González and GitHub
f49fd1b477
Merge pull request #1064 from Guldoman/PR_md_single_math
...
`language_md`: Limit inline math mode to the current line
2022-07-05 18:01:59 -04:00
Jefferson González and GitHub
f611556f1a
Merge pull request #1062 from Guldoman/PR_fix_logview_on_error
...
Fix opening `LogView` when reloading customizations
2022-07-05 18:00:56 -04:00
Jefferson González and GitHub
58336f6060
Merge pull request #1060 from Guldoman/PR_drag_whitespace_newline
...
On `doc:newline` remove line content if it contains only whitespace
2022-07-05 17:56:13 -04:00
Jefferson González and GitHub
041456cf38
Merge pull request #1059 from Guldoman/PR_no_indent_empty_lines
...
Don't indent empty lines in a selection
2022-07-05 17:52:17 -04:00
Jefferson González and GitHub
fccd7dbaa9
Merge pull request #1063 from lite-xl/port-build-lhelper-2
...
Adapt build job to lhelper-2
2022-07-05 17:49:17 -04:00
Jefferson González and GitHub
6a8eed45c7
Merge pull request #1057 from jgmdev/PR/font-additions
...
renderer fonts: additions and improvements
2022-06-23 18:09:53 -04:00
jgmdev
d2f9eeea07
renderer fonts: additions and improvements
...
* Allow passing font options to renderer.font:copy().
* Added renderer.font:get_path()
* Reintroduced set_size() for more faster font size changes
* Swapped copy wiht set_size on scale plugin for better performance
* Use code_font:copy() instead of renderer.font.load() on language_md to
properly match user font now that font options are supported on copy.
* Added new changes to renderer docs
2022-06-23 18:08:04 -04:00
jgmdev
31d2024283
lineguide: added config spec
2022-06-23 18:07:27 -04:00
Jefferson González and GitHub
880e6e4f0f
Merge pull request #1040 from Guldoman/PR_tokenizer_errors_alert
...
Add more tokenizer errors/warnings
2022-06-22 19:43:51 -04:00
jgmdev
e0859e1e39
treeview: scale fallback sizes as pointed out by @Guldoman
2022-06-22 01:35:10 -04:00
jgmdev
0629542cf7
updated changelog
2022-06-22 01:10:16 -04:00
Jefferson González and GitHub
3cf1bee1e6
Merge pull request #1054 from jgmdev/PR/fix-toolbarview-requirement
...
treeview: restore ability to disable toolbarview
2022-06-22 01:01:09 -04:00
jgmdev
7b411c3ea9
treeview: restore ability to disable toolbarview
2022-06-22 00:42:26 -04:00
Jefferson González and GitHub
1f4f2e52db
Merge pull request #1048 from DMClVG/patch-1
...
Add .cjs and .mjs for js syntax highlighting
2022-06-20 10:22:07 -04:00
jgmdev
665c2cdd4d
CommandView: improve performance by only drawing visible
2022-06-20 10:01:28 -04:00
jgmdev
173dd3aeb4
plugin treeview: fix crash
...
When the max_project_files is set to a higher value than the allowed
system maximum file descriptors, and opening a project directory that
causes dirmonitor to open a watch on a lot of files or directories, at
least on MacOSX it causes all system.* file functions to return nil
(for too many opened files) which breaks the project files scan.
2022-06-17 15:35:23 -04:00
jgmdev
3c682512e7
build script: fix lua subproject expansion
2022-06-17 11:04:53 -04:00
jgmdev
c2befaa832
changelog: added latest changes
2022-06-17 10:15:14 -04:00
Jefferson González and GitHub
64cb6a290d
Merge pull request #1041 from takase1121/lua-utf8-windows
...
Support UTF-8 on Windows (Lua)
2022-06-17 09:47:02 -04:00
Jefferson González and GitHub
3dadbd3a49
Merge pull request #1038 from takase1121/PR/scale-step-gc
...
run GC between scale to prevent ram from exploding
2022-06-16 03:04:53 -04:00
Jefferson González and GitHub
380cfb9a24
Merge pull request #1030 from Guldoman/PR_cache_draw_whitespace
...
`drawwhitespace`: Cache whitespace location
2022-06-15 21:08:09 -04:00
Jefferson González and GitHub
d2fd5c9df7
Merge pull request #1034 from Guldoman/PR_escape_start_patterns
...
Check if "open" pattern is escaped
2022-06-15 16:51:34 -04:00
Jefferson González and GitHub
eeea47a2e5
Merge pull request #1033 from Guldoman/PR_utf8_regex_fix
...
Convert more byte offsets to utf-8 pos in regex tokenizer
2022-06-15 16:51:11 -04:00
Jefferson González and GitHub
bde056350a
Merge pull request #1037 from takase1121/PR/dlopen-omit-filename
...
omit filename when printing error for library load
2022-06-15 16:37:41 -04:00
Jefferson González and GitHub
0c7a132ec5
Merge pull request #1039 from takase1121/PR/font-retrieve-leak
...
fix memory leak and wrong check in font_retrieve
2022-06-15 16:36:06 -04:00
Jefferson González and GitHub
2dc0a5664d
Merge pull request #1029 from Guldoman/PR_math_md
...
`language_md`: Add math delimiters
2022-06-15 15:32:57 -04:00
jgmdev
d8a3987aa4
changeslog: added performance section and listed PR 1032
2022-06-15 12:15:14 -04:00
Jefferson González and GitHub
2d412ef64a
Merge pull request #1032 from takase1121/font-load-optimization
...
load space metrics only when creating font
2022-06-14 19:56:14 -04:00
jgmdev
82915bb217
changelog: added links to releases
2022-06-07 22:29:21 -04:00
jgmdev
3f206db69a
initial documentation for better code completion
2022-06-07 22:09:34 -04:00
Jefferson González and GitHub
ff641cdb06
Merge pull request #1022 from Guldoman/PR_annoy_on_reload_error
...
Open `LogView` on user/project module reload error
2022-06-07 20:06:56 -04:00
Jefferson González and GitHub
92c6f1c04f
Merge pull request #1021 from Guldoman/PR_lax_common_merge
...
Make `common.merge` work with invalid arguments
2022-06-07 20:05:22 -04:00
Jefferson González and GitHub
61015dd382
Merge pull request #1014 from Guldoman/PR_commandview_options2
...
Add `text`, `select_text` and `show_suggestions` options to `CommandView`
2022-06-07 19:05:32 -04:00
Jefferson González and GitHub
439c27447f
Merge branch 'master' into PR_commandview_options2
2022-06-07 19:03:55 -04:00