Skip to content

Commit b71677d

Browse files
committed
Update /run to /shell
1 parent 6ae9af3 commit b71677d

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

ChatPlugins/Sources/TerminalChatPlugin/TerminalChatPlugin.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import XcodeInspector
55

66
public final class TerminalChatPlugin: ChatPlugin {
77
public static var id: String { "com.intii.terminal" }
8-
public static var command: String { "run" }
9-
public static var name: String { "Terminal" }
8+
public static var command: String { "shell" }
9+
public static var name: String { "Shell" }
1010
public static var description: String { """
11-
Run the command in the message from terminal.
11+
Run the command in the message from shell.
1212
1313
You can use environment variable `$FILE_PATH` and `$PROJECT_ROOT` to access the current file path and project root.
1414
""" }

Core/Sources/ChatGPTChatTab/Views/Instructions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ struct Instruction: View {
1515
1616
| Plugin Name | Description |
1717
| --- | --- |
18-
| `/run` | Runs a command under the project root |
18+
| `/shell` | Runs a command under the project root |
1919
| `/shortcut(name)` | Runs a shortcut from the Shortcuts.app, with the previous message as input |
2020
2121
To use plugins, you can prefix a message with `/pluginName`.

Core/Sources/HostApp/CustomCommandSettings/CustomCommandView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ struct CustomCommandView: View {
213213
}
214214
SubSection(title: Text("Single Round Dialog")) {
215215
Text(
216-
"This command allows you to send a message to a temporary chat without opening the chat panel. It is particularly useful for one-time commands, such as running a terminal command with `/run`. For example, you can set the prompt to `/run open .` to open the project in Finder."
216+
"This command allows you to send a message to a temporary chat without opening the chat panel. It is particularly useful for one-time commands, such as running a terminal command with `/shell`. For example, you can set the prompt to `/shell open .` to open the project in Finder."
217217
)
218218
}
219219
}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ You can detach the chat panel by simply dragging it away. Once detached, the cha
269269

270270
#### Chat Commands
271271

272-
The chat panel supports chat plugins that may not require an OpenAI API key. For example, if you need to use the `/run` plugin, you just type
272+
The chat panel supports chat plugins that may not require an OpenAI API key. For example, if you need to use the `/shell` plugin, you just type
273273

274274
```
275275
/run echo hello
@@ -283,7 +283,7 @@ If you need to end a plugin, you can just type
283283

284284
| Command | Description |
285285
| :--------------------: | ----------------------------------------------------------------------------------------------------------------------------------------- |
286-
| `/run` | Runs the command under the project root. |
286+
| `/shell` | Runs the command under the project root. |
287287
| | Environment variable: <br>- `PROJECT_ROOT` to get the project root. <br>- `FILE_PATH` to get the editing file path. |
288288
| `/shortcut(name)` | Run a shortcut from the Shortcuts.app, and use the following message as the input. |
289289
| | If the message is empty, it will use the previous message as input. The output of the shortcut will be printed as a reply from the bot. |

0 commit comments

Comments
 (0)