You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I am your AI programming assistant. I can identify issues, explain and even improve code.
112
+
Markdown(
113
+
"""
114
+
Hello, I am your AI programming assistant. I can identify issues, explain and even improve code.
115
+
116
+
\(
117
+
useCodeScopeByDefaultInChatContext
118
+
?"Scope **`@code`** is enabled by default."
119
+
:"Scope **`@file`** is enabled by default."
120
+
)
121
+
"""
122
+
)
123
+
.modifier(InstructionModifier())
117
124
118
-
Currently, I have the ability to read the following details from the active editor:
119
-
- The **selected code**.
120
-
- The **relative path** of the file.
121
-
- The **error and warning** labels.
122
-
- The text cursor location.
125
+
Markdown(
126
+
"""
127
+
You can use scopes to give the bot extra abilities.
123
128
124
-
If you'd like me to examine the entire file, simply add `@file` to the beginning of your message.
129
+
| Scope Name | Abilities |
130
+
| --- | --- |
131
+
| `@file` | Read the metadata of the editing file |
132
+
| `@code` | Read the code and metadata in the editing file |
133
+
| `@web` (beta) | Search on Bing or query from a web page |
125
134
126
-
To use plugins, you can start a message with `/pluginName`.
127
-
"""
128
-
)
129
-
}else{
130
-
Markdown(
131
-
"""
132
-
Hello, I am your AI programming assistant. I can identify issues, explain and even improve code.
135
+
To use scopes, you can prefix a message with `@code`.
133
136
134
-
Currently, I have the ability to read the following details from the active editor:
135
-
- The **relative path** of the file.
136
-
- The **error and warning** labels.
137
-
- The text cursor location.
137
+
You can use shorthand to represent a scope, such as `@c`, and enable multiple scopes with `@c+web`.
138
+
"""
139
+
)
140
+
.modifier(InstructionModifier())
141
+
142
+
Markdown(
143
+
"""
144
+
You can use plugins to perform various tasks.
145
+
146
+
| Plugin Name | Description |
147
+
| --- | --- |
148
+
| `/run` | Runs a command under the project root |
149
+
| `/math` | Solves a math problem in natural language |
150
+
| `/search` | Searches on Bing and summarizes the results |
151
+
| `/shortcut(name)` | Runs a shortcut from the Shortcuts.app, with the previous message as input |
152
+
| `/shortcutInput(name)` | Runs a shortcut and uses its result as a new message |
153
+
154
+
To use plugins, you can prefix a message with `/pluginName`.
155
+
"""
156
+
)
157
+
.modifier(InstructionModifier())
158
+
}
159
+
}
138
160
139
-
If you would like me to examine the selected code, please prefix your message with `@selection`. If you would like me to examine the entire file, please prefix your message with `@file`.
161
+
structInstructionModifier:ViewModifier{
162
+
@AppStorage(\.chatFontSize)varchatFontSize
140
163
141
-
To use plugins, you can start a message with `/pluginName`.
0 commit comments