Files
plainleaf/website/API/command.md
T
Zef Hemel 6078452a6c Breaking Lua API changes:
* tpl -> template.new
* define_command -> command.define
* define_event_listener -> event.listen
* tag -> index.tag

Updated in the docs
2025-01-19 14:32:11 +01:00

15 lines
241 B
Markdown

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
}
```