aboutsummaryrefslogtreecommitdiff
path: root/data/plugins
AgeCommit message (Collapse)Author
2025-11-24fix(treeview): avoid crashing if creating a new file errors out (#2184)Guldoman
* fix(treeview): avoid crashing if creating a new file errors out * refactor(treeview): no need to write to a new file
2025-11-23Fix wrong suggestion when creating file or folder in treeview (#2183)yahallo1
* Fix wrong suggestion when creating file in treeview * Fix wrong suggestion when creating folder in treeview --------- Co-authored-by: yahallo1 <yahallo1@mailbox.org>
2025-09-13Context Menu Rework (#2122)Adam
* Simplified context menu; at this point, we don't really need to split it between plugin and main, and we should use the command system if possible. * Streamlined language. * Unified predicates. * Fixed up some minor issues. * Readded this menu bind. * Ensured that context menu command works even without x and y. * Cleaned up treeview rework, and incoporated Guldo's comments. * Allowed for positional context menu override. * Additional documentation. * Implemented Guldo's suggestions. * Removed trailing space. * Removed unecessary requires.
2025-08-29Changed to use deprecation log instead of regular warn so as to not spam ↵Adam
logs. (#1929) Fixed small bug with saving workspaces on project change. Revert "Removed storage module." This reverts commit 0bb8d7ec052f2d6412b7ee3459dfb75a694f7ad0. Revert "Typo." This reverts commit 283b0ae49274788081e6bf447d5fdb55bc0cb6f1.
2025-08-29Rearrange Plugin Loading and SDL Initialization (#1881)Adam
* Revert "Removed storage module." This reverts commit 0bb8d7ec052f2d6412b7ee3459dfb75a694f7ad0. Revert "Typo." This reverts commit 283b0ae49274788081e6bf447d5fdb55bc0cb6f1. Initial commit. Moved around plugin initialization. Fixing restarting when changing projects. Added in autorestart plugin. Moved screensaver call to after video subsystem init. Fixed minor issue. Missing extension. Kept initailization of previous_find and previous_replace. Allowed priority regex to take a decimal place. Fixed priority regex. Fixed version mismatch error. Removed hints. Whoops. Reverting things. Fixed up warnings. * Removed if statements as we're on SDL3. * updated to SDL3. * Changed initialization styles to SDL3. * Removed unecessary dofile. * Ensured that we can always read files, even binary ones.
2025-06-13Made findfile update suggestions as more results come in. (#2039)Adam
* Made findfile update suggestions as more results come in. * To make the Guldo happy. * Ensures that we don't update a commandview we don't own. * Grumble. * Refined scroing, and made it so things don't jump around on empty string. * Updated scoring algorithm. * Added in ability for commandview to preserve the suggestion index. * Added in ability to preserve things, and made sure that we zero out a thread if it's dead. * Clarity. * Made interval make more sense. * Ensured that core.visited_files is involved. * Added in comments and changed the maximum amount of time we can spend in a loop. * Removed unecessary variable. * Keeps tracks of last user action on the commandview. * Reworked to avoid needing to specify preserve. * Updated constants. * Updated to record the user's last supplied text, and then use it when we're grepping through suggestions. * Typo. * Implementing Guldo's changes.
2025-05-19language_lua: add files with `rockspec` extenstion (#2083)ildar
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-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-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-04Revert "New-File ending in slash creates new folder instead (#1898)"Guldoman
This reverts commit e4ceefe50a143006c21fc6d4b076263fa4450d28.
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-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-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-07-04add cudaaia29
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-22Handle static constexpr in language_cpp (#1806)fgelm01
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-05Change co_wait to co_await in language_cpp (#1800)fgelm01
The C++20 keyword is spelled `co_await`.
2024-04-13Added Arduino syntax highlighting support alongside C++. (#1767)PerilousBooklet
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-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-01-21language_js: support binary and octal representation (#1710)Takase
2024-01-21autoreload docs only if their filename matches an actual file (#1698)vqn
2024-01-20Improve number highlighting for python syntax highlighting (#1704)Fiji
* Improve number highlighting for python syntax highlighting Adds support for octal and binary representation, as well uppercase characters (X, B and O) * add underscore and negative hex/oct/bin value support * Removed | from pattern
2023-12-03Fixed a minor bug, should close issue #1680.Adam Harrison
2023-11-29Improve font/color change detection in `language_md` (#1614)Guldoman
* Delay setting font for custom `language_md` token types * Improve font/color change detection in `language_md`
2023-11-29Fix `language_js` regex constant detection (#1581)Guldoman
* 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-29Fix `dirmonitor` sorting issues (#1599)Guldoman
* 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-11-28Avoid considering single spaces in `detectindent` (#1595)Guldoman
2023-10-18Save in the `workspace` unsaved named files and `crlf` status (#1597)Guldoman
* Save in the `workspace` unsaved named files * Save in the `workspace` the `crlf` status and restore it for "new" files
2023-09-07Make `linewrapping` consider the expanded `Scrollbar` sizeGuldoman
This avoids reflowing the text when hovering the scrollbar.
2023-09-07Fixed C++14 digit separators (#1593)Robert Hildebrandt
2023-08-26Autocomplete plugin improvements (#1519)Jefferson González
* 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-08-04Use proper timeouts for coroutines that don't need to wait (#1467)Guldoman
2023-05-24Mark `linewrapping` `open_files` table as weakGuldoman
We weren't correctly garbage-collecting `Doc`s, so we had `Highlighter`s stay alive over their due time.
2023-05-20Add mouse grab (#1501)Guldoman
* Add mouse grab We now also send mouse movement events only to the interested view. * Add deprecation messages handler * Make various `View`s respect `on_mouse_left` * `StatusView` * `TitleView` * `TreeView` * `ToolbarView` * Fix scrollbar in `TreeView` not updating We were in some cases sending outdated mouse positions to the scrollbar, which made it think that the mouse was hovering it. This also updates the hovered item more responsively during scroll.
2023-05-17Move lineguide below blinking cursor, fixes #1488 (#1511)Jefferson González
* Move lineguide below blinking cursor, fixes #1488 * Added config_spec custom color
2023-05-09detectindent: fix wrong detection reported by Adam (#1500)Jefferson González
* The comment patterns had to come before the string ones * The smallest indentation size is now taken into consideration even if it only occurs once, we just make sure its size is more than 1 space.