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:
@@ -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
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user