File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -211,7 +211,21 @@ public extension UserDefaultPreferenceKeys {
211211
212212public extension UserDefaultPreferenceKeys {
213213 struct CustomCommandsKey : UserDefaultPreferenceKey {
214- public let defaultValue : [ CustomCommand ] = [ ]
214+ public let defaultValue : [ CustomCommand ] = [
215+ . init(
216+ name: " Explain Selection " ,
217+ feature: . chatWithSelection(
218+ prompt: " Explain the code concisely, do not interpret or translate it. "
219+ )
220+ ) ,
221+ . init(
222+ name: " Add Documentation to Selection " ,
223+ feature: . promptToCode(
224+ prompt: " Add documentation on top of the code. " ,
225+ continuousMode: false
226+ )
227+ )
228+ ]
215229 public let key = " CustomCommands "
216230 }
217231
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ public extension UserDefaults {
1010 shared. setupDefaultValue ( for: \. automaticallyCheckForUpdate)
1111 shared. setupDefaultValue ( for: \. suggestionPresentationMode)
1212 shared. setupDefaultValue ( for: \. widgetColorScheme)
13+ shared. setupDefaultValue ( for: \. customCommands)
1314 }
1415}
1516
You can’t perform that action at this time.
0 commit comments