lite-xl/data/core/commands
Guldoman cf29a6a45f
Allow command predicates to manage parameters passed to the commands
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-08-16 22:13:16 +02:00
..
command.lua Allow command predicates to manage parameters passed to the commands 2022-08-16 22:13:16 +02:00
core.lua Add `text` and `select_text` to `CommandView` options 2022-06-02 19:30:51 +02:00
dialog.lua Allow command predicates to manage parameters passed to the commands 2022-08-16 22:13:16 +02:00
doc.lua Allow command predicates to manage parameters passed to the commands 2022-08-16 22:13:16 +02:00
drawwhitespace.lua Implement unicode character replacements 2021-04-01 18:05:59 +02:00
files.lua Use new `CommandView:enter` options table 2022-05-30 22:08:13 +02:00
findreplace.lua `findreplace`: Sort last searches 2022-06-23 05:16:47 +02:00
log.lua remove unsaved flag from log.txt 2021-12-22 10:54:25 +08:00
root.lua Allow command predicates to manage parameters passed to the commands 2022-08-16 22:13:16 +02:00
statusbar.lua Use new `CommandView:enter` options table 2022-05-30 22:08:13 +02:00