aboutsummaryrefslogtreecommitdiff
path: root/data
AgeCommit message (Collapse)Author
2025-04-09core: use SDL3 application callbackscore/sdl-callbacktakase1121
2025-04-08core: fix not passing window when configuring borderless modeTakase
2025-04-08SDL3 port (#1756)Jan
* update to SDL 3.2.0 * remove SDL wrap * fix darwin and windows CI * update build box, correct msys sdl3 dependency * port leftovers from renderer backend to SDL3 * remove SDL main dep the main implementation is now included in a header * main.c: use SDL_main.h This needs to be included to work. * ci: use vcpkg and pkgconf to support SDL3 on MSVC * ci: use 7z to create zip * renwindow: create texture and surface suitable for the display * system: remove trailing whitespace * renderer: fix trailing whitespace * system: fix checking the wrong argument * system: port rmdir and stat to SDL3 API * system: remove unneeded API level check * system: fix wrong parameter index * system: make set_window_hit_test and set_window_bordered accept a window * docs/system: update docs * system: restore some comments * docs/system: add missing documentation for system.text_input * system: use SDL_setenv_unsafe * system: add back comment for setenv * system,renderer: remove unnecessary SDL_ClearError calls --------- Co-authored-by: takase1121 <20792268+takase1121@users.noreply.github.com>
2025-03-17Fixed minor bug relating to the new project reworok changes, which stopped ↵Adam Harrison
new-folder and new-file from working correctly.
2025-03-16balance computed directory list, remove recursive function invocation (#1991)Jan
2025-03-15syntax: warn against malformed patterns and disable them (#2029)Takase
2025-03-15language_cpp: add back digit separators (#2026)Takase
* language_cpp: add back digit separators * language_cpp: rewrite number matching in regex * language_c: port digit separators over from language_cpp
2025-03-15common: allow / and \ as PATHSEP on Windows when fuzzy matching files (#1992)Takase
* common: allow / and \ as PATHSEP on Windows when fuzzy matching files * common: fix PLATFORM == Windows
2025-03-15fix: use current char to determine `col` in `DocView:get_x_offset_col` (#1946)Guldoman
Previously it would use the last char position, which resulted in incorrect values when the next char had a different size than the current one.
2025-03-15add a __tostring method to every object (#1534)ThaCuber
* added a stupid __tostring to every object * moved every __tostring to just after the :extend() call --------- Co-authored-by: Adam <adamdharrison@gmail.com>
2025-03-15Project Rework (#1455)Adam
* Initial commit to clean up projects; spun off find-file to its own plugin, removed project limit, removed the concept of a project maintaining an ordered list of files, and allowed treeview to see things like hidden files and files not actually in the project. Normalizing things, fixed typo. Abstracted root project, and made things more in line with current master behaviour. Removed unused legacy code, as well as ensured that we use absolute paths. Fixed issue with backslahes on linux, will look at windows at some point. Removed stray print. Removed orphaned function. Removed extraneous command. Fixed the ability to close project folders. Removed superceded function. Applied jgm's suggestions. * Bump modversion. * Bumped modversion and changed a few minor things. * Added in handling of ignored files. * Fixed small issue. * Fixed issue with absolute arguments. * Removed home encoding; may revert this if I can find out why it was done. * Fixed minor issue with file suggestions. * Cleaned up treeview. * Typo. * Added in visible. * Ensured that the appropriate project module is loaded. * Fixed improper rebase. * Abstracted out the storage system of the workspace plugin so other plugins can use it. * Fixed double return. * Fixed functional issue. * Added documentation. * Sumenko reports duplicate function definitions, unsure why. * Fixed minor bug with workspace. * Fixed switching projects on restart. * Harmonized spacing around asserts, and fixed an issue forgetting to set has_restarted. * Made project an object. * Removing unecessary yields. * Removed unecessary fallback. * Removed unecessary line. * Reveted backslash handling, as it doesn't seem to make any difference. * Spacing. * Only stonks. * Removed uneeded error handling. * Added in function to determine project by path, and added in deprecation warnings for legacy interface. * Removed storage module. * Typo. * Changed to use deprecation log instead of regular warn so as to not spam logs. * Fixed small bug with saving workspaces on project change. * Update data/core/init.lua ---------
2025-01-28Update CSS plugin to support more units (#2010)Programutox
* Update css plugin to support more units * Fixed spacing. --------- Co-authored-by: Adam Harrison <adamdharrison@gmail.com>
2024-12-18feat: add support for tab stops (#1945)Guldoman
* feat: add support for tab stops * refactor: simplify `tab_offset == nil` case Co-authored-by: Takase <20792268+takase1121@users.noreply.github.com> * refactor: use `NAN` `offset` instead of bool to enable tab stops --------- Co-authored-by: Takase <20792268+takase1121@users.noreply.github.com>
2024-12-04Revert "New-File ending in slash creates new folder instead (#1898)"Guldoman
This reverts commit e4ceefe50a143006c21fc6d4b076263fa4450d28.
2024-12-04fix: only allow backslash as path separator in Windows in ↵Guldoman
`common.path_suggest` (#1976)
2024-12-02docview: prevent overscroll when DocView size is less than lh * 2 (#1971)Takase
2024-12-02check item type before creating input text (#1904)Josh Piasecki
* check item type before creating input text * Update data/plugins/treeview.lua Co-authored-by: Takase <20792268+takase1121@users.noreply.github.com> * Update data/plugins/treeview.lua Co-authored-by: Takase <20792268+takase1121@users.noreply.github.com> --------- Co-authored-by: FloppyDisco <joshuapaulpiasecki@gmail.com> Co-authored-by: Takase <20792268+takase1121@users.noreply.github.com>
2024-12-02New-File ending in slash creates new folder instead (#1898)Josh Piasecki
* abstracted new_file and new_folder * check for both slashes when creating new folder --------- Co-authored-by: FloppyDisco <joshuapaulpiasecki@gmail.com>
2024-12-02allow `/` for path suggestions in all OSesThaCuber
2024-11-25Install plugins with lpm inside meson (#1951)Takase
* meson: install plugins with lpm * meson: add cachedir as output * build.sh: fix bash syntax error * build.sh: only copy datadir when PGO is enabled * build.sh: properly install files with meson install * build.sh: install macOS bundle files with .app suffix * ci: copy bundle and portable files correctly * package-dmg: remove extraneous steps * ci: fix wrong bundle path * build.sh: force reconfigure bundle=false if bundle is not explicitly given * build.sh: move wrong bundle=true assignment to the right place * ci: remove -a flag from cp command * ci: use xargs and find -print0 to omit spaces in find output * ci: specify correct path to Info.plist * ci: correctly run dmgbuild * dmgbuild: get application path from command line * ci: organize dmgbuild arguments * ci: properly escape arguments * ci: finally correctly specify yaml string * ci: don't copy Info.plist again * build.sh: don't install any plugins if -A is not specified * build.sh: use the latest release from github
2024-10-22Add `minimum_thumb_size` and `{contracted,expanded}_scrollbar_margin` to ↵Guldoman
`Scrollbar` (#1589) * Add `minimum_thumb_size` to `Scrollbar` * Add `{contracted,expanded}_scrollbar_margin` to `Scrollbar`
2024-10-22Add `inclusive` parameter to `Doc:get_text` (#1586)Guldoman
This is needed to get the last character of the "selection". For example: ```lua doc:get_text(1, 1, #doc.lines, math.huge) ``` will return everything but the last newline, while ```lua doc:get_text(1, 1, #doc.lines, math.huge, true) ``` will return the last newline too.
2024-10-22feat(core.emptyview): add name to emptyview (#1569)Takase
* feat(core.emptyview): add name to emptyview * fix(core.emptyview): set filename to empty
2024-10-22Fix multi-type usage in delimited patterns (#1740)Guldoman
In the "end" pattern we weren't considering the multiple types.
2024-10-22Add support for relative `require`s (#1634)Guldoman
2024-10-22Allow writing to hidden files on Windows (#1653)Takase
* feat(system): add system.ftruncate * fix: EPERM writing to hidden files on Windows * chore(doc): fix capitalization * refactor(system): make ftruncate length optional * refactor(doc): don't specify length
2024-10-22improve projectsearch (#1876)ThaCuber
* improve projectsearch - stick status to top of view - add horizontal scrolling - added ellipsis at the end of the text if it's too long * Reverted removal of 0 on yield. --------- Co-authored-by: Adam Harrison <adamdharrison@gmail.com>
2024-10-22process: migrate arg validation and checking to Luatakase1121
2024-10-21treeview: remove unused code (#1895)Guldoman
It caused a lot of useless `system.absolute_path` calls.
2024-10-02Add keyboard shortcut to tooltips in `ToolbarView` (#1880)Adam
2024-09-13Add primary selection support (#1729)Guldoman
* Add support for primary selections * Handle primary selection in `DocView`s
2024-09-03Configurable statusview icon (#1617)Takase
* docs(core.statusview): fix item.visible being mandatory * feat: make the line icon configurable * fix: empty icons * fix: use user specified font Co-authored-by: Guldoman <giulio.lettieri@gmail.com> * fix: never draw anything if disabled Co-authored-by: Guldoman <giulio.lettieri@gmail.com> * fix: always add stonks icon Co-authored-by: Guldoman <giulio.lettieri@gmail.com> * feat: add rgb functionality * fix: reduce number of color changes --------- Co-authored-by: Guldoman <giulio.lettieri@gmail.com>
2024-07-22Revert "fix: avoid following symlinks in `common.rm`"Takase
This reverts commit e3e8badf994bd377b1abd7c8632de2478d4fa803.
2024-07-22fix: avoid following symlinks in `common.rm`Guldoman
2024-07-04add cudaaia29
2024-06-30(fix): passed missing core.window to set_window_mode call (#1836)Adam
* (fix): passed missing core.window to set_window_mode call * Propogated fix to calls made from TitleView.
2024-06-24core/doc: fix wrong table index in Doc:merge_cursorstakase1121
it was off by 1
2024-06-24fix(doc): convert `Doc:merge_cursors` parameter from "selection index" to ↵Guldoman
table index
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-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 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-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`.