Skip to content

Commit 54a9aff

Browse files
committed
Update README.md
1 parent 3acdc23 commit 54a9aff

1 file changed

Lines changed: 27 additions & 15 deletions

File tree

README.md

Lines changed: 27 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ If you find that some of the features are no longer working, please first try re
148148
The app can provide real-time code suggestions based on the files you have opened. It's powered by GitHub Copilot and Codeium.
149149

150150
The feature provides two presentation modes:
151+
151152
- Nearby Text Cursor: This mode shows suggestions based on the position of the text cursor.
152153
- Floating Widget: This mode shows suggestions next to the circular widget.
153154

@@ -186,24 +187,33 @@ You can detach the chat panel by simply dragging it away. Once detached, the cha
186187

187188
#### Commands
188189

189-
- Open Chat: Open a chat window.
190+
- Open Chat: Open a chat tab.
190191

191192
#### Keyboard Shortcuts
192193

193194
| Shortcut | Description |
194195
| :------: | --------------------------------------------------------------------------------------------------- |
195-
| `⌘W` | Close the chat. |
196+
| `⌘W` | Close the chat tab. |
196197
| `⌘M` | Minimize the chat, you can bring it back with any chat commands or by clicking the circular widget. |
197-
| `⇧↩︎` | Add new line. |
198+
| `⇧↩︎` | Add new line. |
199+
| `⇧⌘]` | Move to next tab |
200+
| `⇧⌘[` | Move to previous tab |
198201

199202
#### Chat Scope
200203

201204
The chat panel allows for chat scope to temporarily control the context of the conversation for the latest message. To use a scope, simply prefix the message with `@scope`.
202205

203-
| Scope | Description |
204-
| :----------: | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
205-
| `@selection` | Inject the selected code from the active editor into the conversation. This scope will be applied to any message automatically. If you don't want this to be the default behavior, you can turn off the option `Use selection scope by default in chat context.`. |
206-
| `@file` | Inject the content of the file into the conversation. Keep in mind that you may not have enough tokens to inject large files. |
206+
| Scope | Description |
207+
| :-----: | ---------------------------------------------------------------------------------------- |
208+
| `@file` | Includes the metadata of the editing document and line annotations in the system prompt. |
209+
| `@code` | Includes the focused/selected code and everything from `@file` in the system prompt. |
210+
| `@web` | Allow the bot to search on Bing or query from a web page |
211+
212+
`@code` is on by default, if `Use @code scope by default in chat context.` is on. Otherwise, `@file` will be on by default.
213+
214+
To use scopes, you can prefix a message with `@code`.
215+
216+
You can use shorthand to represent a scope, such as `@c`, and enable multiple scopes with `@c+web`.
207217

208218
#### Chat Plugins
209219

@@ -219,14 +229,16 @@ If you need to end a plugin, you can just type
219229
/exit
220230
```
221231

222-
| Command | Description |
223-
| :------------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
224-
| `/run` | Runs the command under the project root. You can also use environment variable `PROJECT_ROOT` to get the project root and `FILE_PATH` to get the editing file path. |
225-
| `/airun` | Creates a command with natural language. You can ask to modify the command if it is not what you want. After confirming, the command will be executed by calling the `/run` plugin. |
226-
| `/math` | Solves a math problem in natural language |
227-
| `/search` | Search on Bing and summarize the results. You have to setup the Bing Search API in the host app before using it. |
228-
| `/shortcut(shortcut name)` | Run a shortcut from the Shortcuts.app, and use the following message as the input. 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. |
229-
| `/shortcutInput(shortcut name)` | Run a shortcut from the Shortcuts.app, and use the following message as the input. If the message is empty, it will use the previous message as input. The output of the shortcut will be send to the bot as a user message. |
232+
| Command | Description |
233+
| :--------------------: | ----------------------------------------------------------------------------------------------------------------------------------------- |
234+
| `/run` | Runs the command under the project root. |
235+
| | Environment variable: <br>- `PROJECT_ROOT` to get the project root. <br>- `FILE_PATH` to get the editing file path. |
236+
| `/math` | Solves a math problem in natural language |
237+
| `/search` | Search on Bing and summarize the results. You have to setup the Bing Search API in the host app before using it. |
238+
| `/shortcut(name)` | Run a shortcut from the Shortcuts.app, and use the following message as the input. |
239+
| | 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. |
240+
| `/shortcutInput(name)` | Run a shortcut from the Shortcuts.app, and use the following message as the input. |
241+
| | If the message is empty, it will use the previous message as input. The output of the shortcut will be send to the bot as a user message. |
230242

231243
### Prompt to Code
232244

0 commit comments

Comments
 (0)