Guldoman
3ee903b16c
Fix `dirmonitor` sorting issues ( #1599 )
...
* Use `PATHSEP` in path-related functions
* Don't stop on digits when getting the common part in `system.path_compare`
* Avoid sorting multiple times in `dirwatch.get_directory_files`
This also fixes the timeout detection in `recurse_pred`.
2023-12-26 13:16:33 +00:00
Guldoman
1dceaf65f5
Fix running `core.step` when receiving an event while not waiting
...
When `time_to_wake` was <= 0, so when a coroutine needed to be executed
as soon as possible, we didn't check for events, so we only performed a
`core.step` with the blink timer.
This resulted in jerky reactions to input.
2023-12-26 13:16:33 +00:00
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
Takase
8c8635146e
ci(release): use lite-xl org ( #1571 )
2023-08-07 14:51:14 +01:00
Guldoman
6d5c6051cd
Make `DocView` aware of scrollbars sizes ( #1177 )
...
* Make `DocView:scroll_to_make_visible` aware of vertical scrollbar width
* Make `DocView` aware of horizontal scrollbar size
2023-08-07 14:51:14 +01:00
Adam Harrison
6bb9a89a8b
Updated README.md as per PR comittee meeting #8 .
2023-08-07 14:51:14 +01:00
Shreyas A S
02e421149b
Updating the *Installing prebuild* section in README.md ( #1548 )
...
Sub sections that I've updated:
*To run lite-xl without installing:*
*To install lite-xl copy files over into appropriate directories:*
I think the directory structure of prebuilt packages has changed since when README.md was last updated. I've just updated it. Just that.
Co-authored-by: Shreyas A S <137637016+shreyasastech@users.noreply.github.com>
2023-08-07 14:51:14 +01:00
Guldoman
16bfa6d958
Use proper timeouts for coroutines that don't need to wait ( #1467 )
2023-08-07 14:51:14 +01:00
Delta-official
9c9f2dace0
Normalize stroke before adding keybind ( #1334 )
...
* Normalize stroke before adding keybind
* improve normalization algorithm and implement normalization in several functions
Signed-off-by: delta <darkussdelta@gmail.com>
---------
Signed-off-by: delta <darkussdelta@gmail.com>
2023-08-07 14:51:14 +01:00
Takase
8daf7dc926
feat(src/renderer): unify fontgroup baseline ( #1560 )
...
* feat(src/renderer): unify fontgroup baseline
* fix(src/renderer): use the first font's baseline for the text run
2023-08-07 14:51:14 +01:00
Adam
5145194f1f
Fixed things for when a thread requests a redraw. ( #1570 )
...
* Fixed things for when a thread requests a redraw.
* @guldoman's changes.
* Whoops.
2023-08-07 14:51:14 +01:00
Takase
6ad67c18f0
Documentation for core.command ( #1564 )
...
* docs(core.command): add documentation
* fix(core.common): fix warnings
* docs(core.command): add "core." prefix to all custom types
* docs(core.command); add name as parameter to command.perform
* docs(core.command): fix typo and wording
* docs(core.command): add disclaimer to command.generate_predicate
* docs(core.command): fix wording for predicate
* docs(core.command): document command name
* docs(core.command): document the always_true predicate
2023-08-07 14:51:14 +01:00
Takase
7ba1d1ba8e
docs(system): fix missing parameter for system.path_compare ( #1566 )
...
* docs(system): fix missing parameter for system.path_compare
* docs(system): fix missing parameter in function prototype
2023-08-07 14:51:14 +01:00
Takase
ac3630c2ea
Documentation for core.common ( #1510 )
...
* docs(core.common): add and improve documentation
* refactor(core.common): remove unused variable to get_height()
* docs(core.common): remove messy newlines
* docs(core.common): fix wording
* docs(core.common): use integer instead of number
Co-authored-by: Guldoman <giulio.lettieri@gmail.com>
* docs(core.common): update docs
the docs now follow the style in docs/ directory.
some of the changes suggested are also implemented.
* docs(core.common): fix typo
Co-authored-by: Guldoman <giulio.lettieri@gmail.com>
* docs(core.common): restyle annoatations
Extra whitespaces are removed and @overload is used whenever possible.
* docs(core.common): fix various documentation errors
* docs(core.common): simplify unicode description
* docs(core.common): fix return value
Co-authored-by: Guldoman <giulio.lettieri@gmail.com>
* docs(core.common): clarify common.bench for not being a benchmark
* docs(common): add disclaimer for numbers in common.serialize
---------
Co-authored-by: Guldoman <giulio.lettieri@gmail.com>
2023-08-07 14:51:14 +01:00
Adam
c470683005
Updated extension for mac. ( #1563 )
2023-08-07 14:51:14 +01:00