Revert back slashcommand to slashCommand
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
APIs to create [[Slash Commands]]. For simple cases it is recommended to use [[Library/Std/Slash Templates]] instead.
|
||||
|
||||
## slashcommand.define(spec)
|
||||
## slashCommand.define(spec)
|
||||
|
||||
Define a custom slash command.
|
||||
|
||||
@@ -13,7 +13,7 @@ Supported keys in the spec:
|
||||
Example:
|
||||
|
||||
```lua
|
||||
slashcommand.define {
|
||||
slashCommand.define {
|
||||
name = "hello-world",
|
||||
run = function()
|
||||
editor.insertAtCursor("Hello |^| world!", false, true)
|
||||
|
||||
@@ -89,7 +89,7 @@ Try it: ${widgets.commandButton("Hello World")}
|
||||
|
||||
## Slash commands
|
||||
|
||||
Custom slash commands can be defined using [[API/slashcommand#slashCommand.define(spec)]]:
|
||||
Custom slash commands can be defined using [[API/slashCommand#slashCommand.define(spec)]]:
|
||||
|
||||
```space-lua
|
||||
slashCommand.define {
|
||||
|
||||
Reference in New Issue
Block a user