Guldoman
c4f9542509
Limit `system.{sleep,wait_event}` to timeouts >= 0 ( #1666 )
...
Otherwise we might wait forever by mistake.
2023-12-26 13:16:33 +00:00
Daniel Margarido
86b89c402d
Fixed issue with set_target_size passing the wrong value to plugins ( #1657 )
...
* Fixed issue with set_target_size passing the wrong value to plugins that are split on the right and activated from the settings UI.
* Added position awareness for the all resize_child_node calls.
2023-12-26 13:16:33 +00:00
Guldoman
3972f10059
Fix deleting indentation with multiple cursors ( #1670 )
2023-12-26 13:16:33 +00:00
Guldoman
da64a99f18
Avoid considering single spaces in `detectindent` ( #1595 )
2023-12-26 13:16:33 +00:00
Takase
dc62c59705
refactor(build): use dmgbuild to create dmgs ( #1664 )
...
* refactor(appdmg): make dmgs with dmgbuild
* fix(appdmg.sh): typo
* refactor(appdmg.sh): don't generate config on the fly
* fix(dmgbuild): icon file
* fix(gitignore): dmgbuild settings
* chore(resources): update readme with new files
* chore(resources/macos): add missing newline
2023-12-26 13:16:33 +00:00
Takase
de05ec374e
feat(package): ad-hoc sign macOS bundles ( #1656 )
...
* feat(package): ad-hoc sign macOS bundles
* fix(package.sh): syntax error
* docs(readme): add instructions for self-signed builds
* docs(readme): grammar
Co-authored-by: Guldoman <giulio.lettieri@gmail.com>
---------
Co-authored-by: Guldoman <giulio.lettieri@gmail.com>
2023-12-26 13:16:33 +00:00
ThaCuber
df7cf7e270
ease transparency of nagbar dim ( #1658 )
...
* ease transparency of nagbar dim
* tiny changes
* lerp alpha rather than the whole color
2023-12-26 13:16:33 +00:00
Guldoman
dc3716f177
Make license time-independent ( #1655 )
2023-12-26 13:16:33 +00:00
Guldoman
05fbc48e03
Sanitize tab index in `Node:add_view` ( #1651 )
...
* Fix `Node:add_view` not adjusting tab index after removing `EmptyView`
* Clamp tab index in `Node:add_view`
2023-12-26 13:16:33 +00:00
Takase
6370968494
fix(dirmonitor): deadlock if error handler jumps somewhere else ( #1647 )
...
* fix: deadlock if error handler jumps somewhere else
* docs(dirmonitor): fix wrong data type in error callback
* docs(dirmonitor): clarify coroutines and deadlocks
* docs(dirmonitor): wording
Co-authored-by: Guldoman <giulio.lettieri@gmail.com>
---------
Co-authored-by: Guldoman <giulio.lettieri@gmail.com>
2023-12-26 13:16:33 +00:00
Guldoman
05e7fc4e43
Set SDL hint to prefer software render driver ( #1646 )
2023-12-26 13:16:33 +00:00
Takase
e520227d35
ci: fix diff files having "wrong" path separator ( #1648 )
...
* ci: fix diff files having "wrong" path separator
* ci(build): use git bash to apply patches
* ci(build): fix step wording
Co-authored-by: Guldoman <giulio.lettieri@gmail.com>
---------
Co-authored-by: Guldoman <giulio.lettieri@gmail.com>
2023-12-26 13:16:33 +00:00
Guldoman
9be4583f63
Save in the `workspace` unsaved named files and `crlf` status ( #1597 )
...
* Save in the `workspace` unsaved named files
* Save in the `workspace` the `crlf` status and restore it for "new" files
2023-12-26 13:16:33 +00:00
Guldoman
7e20424b29
Ignore keypresses during IME composition ( #1573 )
...
Some IMEs continue sending keypresses even during composition, so we
just ignore them.
2023-12-26 13:16:33 +00:00
Guldoman
9612f20685
Improve `common.serialize` ( #1640 )
...
* Make `common.serialize` more locale-independent
* Handle inf/nan numbers in `common.serialize`
2023-12-26 13:16:33 +00:00
Guldoman
1669409610
Mark unsaved named files as dirty ( #1598 )
2023-12-26 13:16:33 +00:00
Takase
1196bf355c
fix: dim rendering when antialiasing is turned off ( #1641 )
2023-12-26 13:16:33 +00:00
Takase
9017fadba6
docs: fix prebuilt install instructions ( #1637 )
...
* docs: fix prebuilt install instructions
Added missing documentation for Windows and macOS.
Also updated the Linux instruction for creating desktop entries.
* docs: more clarification and grammar fixes
* docs: clarify plugin and config load in portable mode
* docs: better phrasing
Co-authored-by: Guldoman <giulio.lettieri@gmail.com>
* docs: better phrasing
Co-authored-by: Guldoman <giulio.lettieri@gmail.com>
---------
Co-authored-by: Guldoman <giulio.lettieri@gmail.com>
2023-12-26 13:16:33 +00:00
Guldoman
17cb2e86ed
Remove DPI detection for default `SCALE`
...
This often leads to `SCALE` values that are way off, and makes Lite XL
unusable, so we now just default it to 1.
2023-12-26 13:16:33 +00:00
Takase
4f28f718a9
docs: update invite link on README
2023-12-26 13:16:33 +00:00
Guldoman
febfcb5757
Make `linewrapping` consider the expanded `Scrollbar` size
...
This avoids reflowing the text when hovering the scrollbar.
2023-12-26 13:16:33 +00:00
Guldoman
e5c17ed3ec
Fix `Scrollbar.{expanded,contracted}_size` documentation
2023-12-26 13:16:33 +00:00
Robert Hildebrandt
351ef1ecea
Fixed C++14 digit separators ( #1593 )
2023-12-26 13:16:33 +00:00
Takase
15e05aaf03
docs(core.config): add documentation for config options ( #1512 )
...
* docs(core.config): add documentation for config options
* docs(core.config): remove wrong newline
* docs(core.config): remove trailing whitespace
* docs(core.config): add missing whitespace
* docs(core.config): add disclaimer for core.file_size_limit
* docs(core.config): fix wrong description of the pattern
* docs(core.config): fix wrong description
* docs(core.config): fix wrong description for transitions
* docs(core.config): guide user to drawwhitespace plugin
* docs(core.config): clarify libdecor usage
* docs(core.config): clarify various things
* docs(core.config): clarify more about libdecor support
* docs(core.config): fix missing enum separator
* docs(core.config): remove wayland-specific advice on config.borderless
2023-12-26 13:16:33 +00:00
sammyette
1d5f7ae9b0
feat(statusview): make a separate item for doc position percent ( #1579 )
...
* feat(statusview): make a separate item for doc position percent
* chore: remove unused variable
* fix(statusview): remove command for percent doc item
* fix(statusview): change doc percent tooltip
* fix(statusview): change percent tooltip message
2023-12-26 13:16:33 +00:00
Jefferson González
27f24701c4
Autocomplete plugin improvements ( #1519 )
...
* Add icons support to autocomplete plugin
* Removed redundant flag check
* Added support for non syntax colors
* Assert if color name not in style.syntax
* Autocomplete plugin improvements
* Support suggestion symbols scoping
- global: all open documents
- local: current document
- related: all open documents with same syntax
- none: language syntax symbols only
* Register style.syntax[] entries as icons
* Other related fixes
2023-12-26 13:16:33 +00:00
Guldoman
25a0943087
Add `NaN` guard to `View:update_scrollbar`
2023-12-26 13:16:33 +00:00
Adam
b0e1469a87
Adds super as a modkey. ( #1590 )
...
* Adds super as a modkey.
* Added in super designation for windows.
2023-12-26 13:16:33 +00:00
Guldoman
2ed17dd03f
Normalize strokes in fixed order ( #1572 )
...
* Use normalized strokes when removing duplicates only when appropriate
* Use normalized stroke in `keymap.unbind`
* Normalize strokes by sorting the modifiers before the keys
This also sorts the modifiers in a fixed manner, decided by
`modkeys.keys`.
We need to do this because we display the strokes in a few places like
the command palette.
2023-12-26 13:16:33 +00:00
Jan
3993d689fb
Use Lua wrap by default ( #1481 )
...
Debian and all its derivatives ship a broken Lua 5.4 that is missing some symbols.
To work around broken distros and make development and distribution easier use the wrap by default and add an option to use the system version.
2023-12-26 13:16:33 +00:00
Takase
3f3b4d52b4
docs(core.contextmenu): add documentation for contextmenu ( #1567 )
2023-12-26 13:16:33 +00:00
Guldoman
9bc44e2b45
Fix returned `percent` when clicking the `Scrollbar` `track`
2023-12-26 13:16:33 +00:00
Guldoman
50102fdc3a
Fix `scrollbar` misinterpreting `percent` ( #1587 )
2023-12-26 13:16:33 +00:00
Takase
dc14860166
fix(core): defer core:open-log until everything is loaded ( #1585 )
...
* fix(core): defer core:open-log until everything is loaded
* docs(core): document why core:open-log is opened in a thread
2023-12-26 13:16:33 +00:00
Adam
eb306a2ff0
Windows Installer Path Modification ( #1536 )
...
* innosetup: installation path to environment task
Also set the uninstall icon shown on add/remove programs.
* Improved path description.
---------
Co-authored-by: jgmdev <jgmdev@gmail.com>
2023-12-26 13:16:33 +00:00
Velosofy
f820b9301f
Add "Open with Lite XL" to windows' context menu ( #1333 )
...
Closes #423
2023-12-26 13:15:53 +00:00
George Sokianos
e4a2adf79b
Added some information in the amiga readme
2023-12-26 11:40:44 +00:00
George Sokianos
adc2919dfa
Moved the release_files folder under resources/amiga
2023-12-26 10:58:41 +00:00
George Sokianos
0f7e075d6f
Added the release_files folder
2023-12-18 17:53:40 +00:00
George Sokianos
1b00045146
Added codesets support for encoding switch
2023-12-18 17:19:13 +00:00
Guldoman
34cebe8fe4
Make license time-independent ( #1655 )
2023-12-01 15:41:25 +08:00
Takase
311651333a
feat(process): allow commands and envs on proces_start ( #1477 )
...
* feat(process): allow commands and envs on proces_start
* refactor(process): copy process arguments once whenever possible
Refactors the code to use an arglist type which is just lpCmdline on Windows
and a list in Linux.
The function automatically escapes the command when it is needed, avoiding
a second copy.
This also allows UTF-8 commands btw.
* fix(process): fix invalid dereference
* refactor(process): mark xstrdup as potentially unused
* feat(process): add parent process environment when launching process
* fix(process): fix operator precedence with array operators
* fix(process): fix segfault when freeing random memory
* fix(process): fix wrong check for setenv()
* fix(process): fix accidentally initializing an array by assignment
* fix(process): clear return value if success
2023-12-01 10:12:16 +08:00
Guldoman
8e2928aeb8
Improve font/color change detection in `language_md` ( #1614 )
...
* Delay setting font for custom `language_md` token types
* Improve font/color change detection in `language_md`
2023-11-30 11:45:58 +08:00
Guldoman
bc935906d1
Use x offset to define render command rect in `rencache_draw_text` ( #1618 )
...
* Return x offset for the first character in `ren_font_group_get_width`
* Use x offset to define render command rect in `rencache_draw_text`
2023-11-30 11:45:25 +08:00
Guldoman
9be5a46a22
Fix patterns starting with `^` in `tokenizer` ( #1645 )
...
Previously the "dirty" version of the pattern was used, which could
result in trying to match with multiple `^`, which failed valid matches.
2023-11-30 11:39:55 +08:00
Guldoman
885e6b3c50
Fix `language_js` regex constant detection ( #1581 )
...
* Fix `language_js` regex constant detection
* Simplify regex constant detection in `language_js`
* Add more possessive quantifiers in `language_js` regex constant detection
This avoids more catastrophic backtracking cases.
* Allow `.` after regex constant in `language_js`
2023-11-30 11:39:48 +08:00
Guldoman
b1a647814f
Fix editing after undo not clearing the change id ( #1574 )
2023-11-30 11:39:41 +08:00
Guldoman
8eacca7ae1
Fix selecting newlines with `find-replace:select-add-{next,all}` ( #1608 )
...
* Avoid adding existing selections in `select_add_next`
* Use the first available selection as delimiter in `select_add_next`
* Fix returning searches with newlines in `search.find`
* Fix repeat search when the last result spanned multiple lines
2023-11-30 11:39:27 +08:00
Guldoman
19cef97bcd
Fix `core.redraw` when window is not focused ( #1601 )
...
* Execute at least one step when window has no focus
This way if `core.redraw` is set, it's respected.
* Fully run threads at least once when window has no focus
This allows threads that set `core.redraw` (like `projectsearch`) to
continue running even after the window loses focus.
"Fully" here means that `run_threads` has gone through *all* the "timed
out" coroutines at least once.
2023-11-30 11:39:16 +08:00
Guldoman
c31a8ae0f6
Scale mouse coordinates by window scale ( #1630 )
...
* Update window scale on resize
* Scale mouse coordinates by window scale
* Avoid scaling mouse coordinates while using `LITE_USE_SDL_RENDERER`
2023-11-30 11:27:08 +08:00