aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-06-23Fix window memory allocation bug.PR/window-allocationAdam Harrison
2024-06-23core/rootview: fix dnd multiple folders into dock (#1828)Takase
2024-06-23fix(autoreload): wait a second before automatically reloading a file (#1823)Guldoman
This is needed because we use `mtime` to determine if a file has actually changed, but on most systems this has a resolution of 1 second (and we truncate it to an integer anyways). Without this wait, we would skip reloading a file that has been changed multiple times in the same `mtime` second, thus losing some data.
2024-06-22fix(dirmonitor): avoid calling the change callback multiple times in the ↵Guldoman
same notification (#1824)
2024-06-22move window creation and management to Lua (#1751)Jan
* remove scaling logic from font code for the time being its been hardcoded to 1 for the non SDL Renderer basewin setup, so nothing is lost for non MacOS users. will be revisited in the future when scaling is improved with SDL3 and moved into scripts. * remove unused window_renderer argument from font functions * move window logic to lua, pass window via argument * rename window creation functions `*_create`, `*_destroy`, add real init * Set active window when processing frame * get size directly from RenWindow, get active window size from renderer * correct reverted draw calls * fix window not reappearing on restart * add simple logic to persist the core window * fix style * add renwindow documentation * make windows hidden by default again * reorder ren_update_rects execution, add comment to note future work
2024-06-22Expand Process API (#1757)Adam
* Initial commit of process framework. * Fixed a small issue. * Cleaned up old name. * Harmonized with lua 5.4, and added documentation. * Process is a userdata, not a table, so had to wrap it. Also added in `wait`. * Added in documentation. * Clarified documentation. * Applied patch, and fixed undefined variable. * Re-ordered documentation to be more sensible, added missing option. * Added into start. * Removed unecessary require.
2024-06-22Handle static constexpr in language_cpp (#1806)fgelm01
2024-06-22macos: support drag-and-drop and default file associations (#1822)Takase
* macos: support drag-and-drop and default file associations * resources/macos: use LSItemContentTypes to narrow down files * macos: support opening folders * rootview: workaround macos weird dnd event timing * core/rootview: rename variable and refactor if statement
2024-06-21Update font scale on monitor scale change for `RENDERER` backend (macOS) (#1650)Guldoman
* Update font scale on monitor scale change for `RENDERER` backend (macOS) * fix(renderer): check every font of a fontgroup for scale changes in `update_font_scale` It is needed because fonts can be reused between groups and outside of them. So if the first font of a group has already been scaled, we still need to check if the others still needs to be scaled.
2024-06-21Update language_python.lua (#1723)Gaspartcho
* Update language_python.lua * Update language_python.lua * Update language_python.lua * implemented a better `python_type` subsyntax * Update language_python.lua * fixed a small error where you couldn't hint a type at a var and guive it a value at the same time * Update language_python.lua * Update language_python.lua Dictionaries appear now normally * Update language_python.lua * added suggestions concerning strings * commited suggestion Co-authored-by: Guldoman <giulio.lettieri@gmail.com> * Various changes * Update language_python.lua Syntax more optimized but a tiny bit more complex... * Simplified everything --------- Co-authored-by: Guldoman <giulio.lettieri@gmail.com>
2024-06-20Add support for binary integer literals. (#1819)fgelm01
2024-06-20language_cpp: backport number highlighting from c (#1818)Takase
2024-06-20improve number highlighting for c (#1752)ThaCuber
* improve number highlighting for c * add unsigned suffix * add long suffixes * reorder octal literals and add suffix for hex numbers * fix integer and float suffixes too many characters, send help
2024-06-19resources/macos: better macos installer background (#1816)Takase
2024-06-18ci: dependabot updates (#1814)Takase
* ci: dependabot updates * dependabot: fix syntax error * dependabot: better group name
2024-06-18subprojects: update lua,pcre2,sdl2 (#1812)Takase
* subprojects: update lua,pcre2,sdl2 * meson.build: remove hidapi usage * subprojects/sdl2: fix compilation with xinput Co-authored-by: Guldoman <giulio.lettieri@gmail.com> --------- Co-authored-by: Guldoman <giulio.lettieri@gmail.com>
2024-06-18Update macOS copyright notice (#1815)Takase
* resources: update copyright in info.plist * meson.build: dynamically generate current year "present" may be misleading. * resources/macos: remove unecessary newlines
2024-06-18ci: use latest macos images (#1804)Takase
* ci: use latest macos images * ci/build: clarify the purpose of md5sha1sum * meson.build: remove hidapi usage * ci: downgrade macos version for universal build * scripts: codesign the universal binary with sha1 and sha256 * ci: revert back to macos-14 for universal * ci/build: remove old comment
2024-06-07Update labeler config for new version (#1805)Jan
* Update labeler config for new version * Fix indent --------- Co-authored-by: Takase <20792268+takase1121@users.noreply.github.com>
2024-06-07Update action dependencies (#1724)Takase
* CI: update various action versions The most significant change is action/upload-artifact@v4, which does not support uploading artifacts of the same name. This makes our lives significantly worse, but I don't know if GitHub will remove v3 in future or not. * CI: fix macOS universal artifact download * CI: update release action versions * CI: use containers only for building * CI: fix multiline commands * CI: try to fix multiline strings again * CI: fix multiline strings again ugh * CI: Fix ccache in containers * CI: Fix quotes again * CI: fix ccache * CI: fix deprecated set-output command * ci: update build box to v2.1.2 * ci: revert to softprops/action-gh-release * ci: add name to release * ci: remove name again * ci: fix wrong outputs reference * ci: add name * ci: add missing name for each step * ci: format yaml files * ci/release: add names to unamed entries * ci/release: fix MSYS2 not downloading deps * ci/release: change to ncipollo/release-action There is some weird issue with softprops/action-gh-release and I can't update an existing release. * ci/release: allow updating releases * ci/release: upload all artifacts, then download them at once * ci/release: use a better name for job * ci/release: add release as dependency * ci/release: set tag for update release * ci/auto-labeler: remove workaround for old autolabeler issue * ci/release: remove the need of another bash -c * ci/release: remove weird bash -c
2024-06-06ci: fix typo in release note template (#1801)Takase
2024-06-05fix: avoid iterating over a changing table in `run_threads` (#1794)Guldoman
* fix: avoid iterating over a changing table in `run_threads` This is done to avoid iterating over a table that can change in the meantime. More precisely the issue appears if a thread is removed from the table, we yield early from `run_threads` because we reached the end of the frame, and a new thread is added before the next iteration. For example: ```lua local lost_time = false core.add_thread(function() -- force early yield local t0 = system.get_time() while system.get_time() - t0 < .1 do end lost_time = true end, "a") local step = core.step function core.step() if lost_time then -- add a new thread while run_threads hasn't finished iterating core.add_thread(function()end, "a1") lost_time = false end return step() end ``` would crash with `invalid key to 'next'`. * fix: only run coroutine if it wasn't removed * fix: don't handle `core.threads` table as an array This caused some entries to be skipped or even removed erroneously.
2024-06-05Change co_wait to co_await in language_cpp (#1800)fgelm01
The C++20 keyword is spelled `co_await`.
2024-05-23api/system: fix newlines returned by get_clipboard (#1788)Takase
2024-05-18Generate release notes (#1774)Takase
* ci: generate better release notes * scripts: rename generate-release-note.sh * ci/release: check out all the history * ci/release: accept version from input
2024-05-17build: fix dirmonitor backend selection (#1790)Guldoman
When a backend was specified using meson, the relative source files weren't being added.
2024-04-16Release v2.1.4 (#1772)Takase
* changelog: add changes for 2.1.4 * chore: update version and changelog
2024-04-15ci: fix missing permission for creating releases (#1770)Takase
2024-04-15Skip patterns matching nothing in `tokenizer` (#1743)Guldoman
These patterns cause infinite loops, so warn about them and skip them.
2024-04-15Fix BufferSize in g_read for Windows (#1722)Andrei Vinca
2024-04-13Added Arduino syntax highlighting support alongside C++. (#1767)PerilousBooklet
2024-03-28Fixed some typos in core.init (#1755)PerilousBooklet
* Fixed some typos. * Update data/core/init.lua Co-authored-by: Takase <20792268+takase1121@users.noreply.github.com> * Update data/core/init.lua Co-authored-by: Takase <20792268+takase1121@users.noreply.github.com> --------- Co-authored-by: Takase <20792268+takase1121@users.noreply.github.com>
2024-03-25Limit `language_js` regex avoidance to numbers, and fix starting `/*` ↵Guldoman
comments (#1744) * Avoid starting regexes only after numbers in `language_js` * Allow starting `/*` comments after numbers in `language_js`
2024-03-24Add from symbol to support ESM (#1754)Aziz Mazouz Jaber
2024-03-18Add SerenityOS platform support (#1745)Jan
* Add SerenityOS platform support * remove cpp_std default option
2024-03-15Rectify `LICENSE` dates and owners (#1748)Guldoman
2024-03-07scripts: not hardcode MSYSTEM (#1739)Takase
2024-03-06Fix `language_js` regex/comment distinction (#1731)Guldoman
2024-03-05Improve `CommandView` and `autocomplete` scroll behavior (#1732)Guldoman
* Make command palette item scrolling more natural Also add a config option for the maximum number of visible entries in the command palette. * Make `autocomplete` item scrolling more natural
2024-03-05Improve `autocomplete` suggestions box behavior (#1734)Guldoman
* Improve `autocomplete` suggestions box sizing This avoids that the box gets too big because of non-visible items, and makes it reactive to window sizing. * Draw ellipsis when `autocomplete` entries aren't fully visible
2024-02-24Added .pyi extension to python. (#1728)PerilousBooklet
2024-02-06wasm cross file improvements (#1660)Takase
* fix(wasm-cross): missing idbfs in newer emscripten * refactor(wasm-cross): specify important option in cross file * feat(wasm-cross): allow overriding emscripten path * feat(wasm-cross): add file_packager as a binary
2024-02-06readme: add minimum supported OSes (#1711)Takase
* readme: add minimum supported OSes * README: add linebreak between sentences
2024-02-05process: fix unitialized variables (#1719)Takase
* process: fix potential unitialized variables * process: fix brace initializer error on Windows
2024-01-29v2.1.3 (#1712)Takase
* changelog: update changelog for v2.1.3 * update version in metadata * changelog: fix formatting issue and release date * appstream: update release date
2024-01-23Add system.setenv (#1706)Chloé Vulquin
* add system.setenv * document system.setenv * system.setenv: use wide versions of functions on windows * do not include processenv.h * system.setenv: report failure, including of utfconv * system.setenv: free utfconv output
2024-01-21Fix comment typos in data/core/{init.lua,dirwatch.lua} (#1549)Luke aka SwissalpS
* comment typo in data/core/init.lua * init.lua reword comment * Update dirwatch.lua Some wording is still whacky, maybe next time * Update dirwatch.lua * clear up can/may be not nil confusion * falsey vs falsy new wording to help out * falsey -> falsy * Update data/core/dirwatch.lua Co-authored-by: Guldoman <giulio.lettieri@gmail.com> --------- Co-authored-by: Guldoman <giulio.lettieri@gmail.com>
2024-01-21process: style changes (#1709)Takase
2024-01-21language_js: support binary and octal representation (#1710)Takase
2024-01-21autoreload docs only if their filename matches an actual file (#1698)vqn