Skip to content

Commit 867f5eb

Browse files
authored
Merge pull request #10082 from continuedev/create-markdown-prompt-instead-of-prompt-file
Create invokable markdown prompt instead of .prompt file
2 parents 9984254 + 8e80187 commit 867f5eb

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

gui/src/components/mainInput/TipTapEditor/utils/getSuggestion.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,10 +226,12 @@ export function getSlashCommandDropdownOptions(
226226

227227
if (query.length === 0 && commandItems.length === 0) {
228228
commandItems.push({
229-
title: "Explore prompts",
229+
title: "Create a prompt",
230230
type: "action",
231231
action: () =>
232-
ideMessenger.post("openUrl", "https://continue.dev/explore/prompts"),
232+
ideMessenger.request("config/addLocalWorkspaceBlock", {
233+
blockType: "prompts",
234+
}),
233235
description: "",
234236
name: "",
235237
id: "",

gui/src/pages/config/sections/HelpSection.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -179,15 +179,6 @@ export function HelpSection() {
179179
<h3 className="mb-3 text-base font-medium">Resources</h3>
180180
<Card className="!p-0">
181181
<div className="flex flex-col">
182-
<ConfigRow
183-
title="Continue Hub"
184-
description="Visit continue.dev to explore custom agents and blocks"
185-
icon={LinkIcon}
186-
onClick={() =>
187-
ideMessenger.post("openUrl", "https://continue.dev/")
188-
}
189-
/>
190-
191182
<ConfigRow
192183
title="Documentation"
193184
description="Learn how to configure and use Continue"

0 commit comments

Comments
 (0)