From a7b284938f9fa8a8a22780d5c3a417ecedb0c59a Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Wed, 3 Sep 2025 08:14:39 +0200 Subject: [PATCH] Revert back slashcommand to slashCommand --- website/API/slashcommand.md | 4 ++-- website/Space Lua.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/website/API/slashcommand.md b/website/API/slashcommand.md index 79f0335d..39b17a6a 100644 --- a/website/API/slashcommand.md +++ b/website/API/slashcommand.md @@ -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) diff --git a/website/Space Lua.md b/website/Space Lua.md index ad1b62ad..975377a7 100644 --- a/website/Space Lua.md +++ b/website/Space Lua.md @@ -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 {