Repo refactor: rename "website" to "docs"

This commit is contained in:
Zef Hemel
2026-06-23 09:12:24 +02:00
parent 1b3e86d960
commit e7ccdc2883
226 changed files with 1 additions and 1 deletions
+25
View File
@@ -0,0 +1,25 @@
#api/space-lua
APIs to create [[Slash Command]]. For simple cases it is recommended to use [[Library/Std/Infrastructure/Slash Templates]] instead.
## slashCommand.define(spec)
Define a custom slash command.
Supported keys in the spec:
* `name`: name of the command
* `description`: Description of the command
* `run`: The callback function that will be invoked once the command is run.
Example:
```lua
slashCommand.define {
name = "hello-world",
run = function()
editor.insertAtCursor("Hello |^| world!", false, true)
end
}
```