aboutsummaryrefslogtreecommitdiff
path: root/data/core/command.lua
AgeCommit message (Collapse)Author
2022-08-16Replace `assert` with `core.log_quiet` on command replaceGuldoman
This caused issues when saving the user module with commands defined inside it, as it resulted in the user-defined commands trying to overwrite themselves and failing.
2022-08-16Add predicate memoization to `command.get_all_valid`Guldoman
2022-08-16Allow command predicates to manage parameters passed to the commandsGuldoman
When a command is performed with parameters, those are now passed to the predicate. The predicate can then return, after the validity boolean, any other value that will then be passed to the actual command. If the predicate only returns the validity boolean, the original parameters are passed through to the actual command. This allows predicates to manipulate the received parameters, and allows them to pass the result of an expensive computation to the actual command, which won't have to recalculate it. String and table predicates will now also return `core.active_view`.
2022-05-15command predicates: added support for strict matching by appending '!' on ↵jgmdev
string predicates
2022-05-12adjust and consolidate duplicated predicate codejgmdev
2022-03-11statusview: added ability to hide and commandsjgmdev
Also fixed the right panel not been draggable.
2021-12-18multiple improvements to loggingtakase1121
- added style.log table - removed contextmenu - use ctrl+click to copy individual log entries - use icon instead of + or - for log items in logview
2021-11-23Added in cut, copy and paste to the context menu. Also removed find pattern, ↵Adam Harrison
as that's no longer a valid command. Also made it so commands only show up if their predicates are valid.
2021-11-14Added in clicks to keymap.Adam Harrison
2021-06-09Added missing NagView dialog commands to startup.jgmdev
2021-04-01Implement unicode character replacementsFrancesco Abbate
Useful to draw whitespaces with alternate characters and colors without slowing down the text rendering. A new API is implemented. A renderer.replacements object can be created to list the replacements. In turns the function renderer.draw_text and draw_text_subpixel now accept two optional arguments for replacements.
2020-12-30Add command to create a directory in a new category "files"Francesco Abbate
Use the alt + (left click) is tree view to create a directory and shift + (middle click) to remove a project directory.
2019-12-28Initial commitrxi