Breaking Lua API changes:

* tpl -> template.new
* define_command -> command.define
* define_event_listener -> event.listen
* tag -> index.tag

Updated in the docs
This commit is contained in:
Zef Hemel
2025-01-19 14:32:11 +01:00
parent 72b4ecdc36
commit 6078452a6c
22 changed files with 275 additions and 237 deletions
+14
View File
@@ -0,0 +1,14 @@
APIs related to editor commands
### command.define(command_def)
Registers a command.
Example:
```lua
command.define {
name = "My custom command",
run = function()
editor.flash_notification "Triggered my custom command"
end
}
```