* tpl -> template.new * define_command -> command.define * define_event_listener -> event.listen * tag -> index.tag Updated in the docs
241 B
241 B
APIs related to editor commands
command.define(command_def)
Registers a command.
Example:
command.define {
name = "My custom command",
run = function()
editor.flash_notification "Triggered my custom command"
end
}