Skip to content

Commit cc526ca

Browse files
committed
Bing back the new command button
1 parent 2c59bc4 commit cc526ca

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

Core/Sources/HostApp/CustomCommandView.swift

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,22 @@ struct CustomCommandView: View {
112112
.multilineTextAlignment(.center)
113113
}
114114
}
115+
.safeAreaInset(edge: .bottom) {
116+
Button(action: {
117+
editingCommand = .init(isNew: true, command: CustomCommand(
118+
commandId: UUID().uuidString,
119+
name: "New Command",
120+
feature: .chatWithSelection(
121+
extraSystemPrompt: nil,
122+
prompt: "Tell me about the code."
123+
)
124+
))
125+
}) {
126+
Text(Image(systemName: "plus.circle.fill")) + Text(" New Command")
127+
}
128+
.buttonStyle(.plain)
129+
.padding()
130+
}
115131

116132
Divider()
117133

0 commit comments

Comments
 (0)