agent: Add item to open Prompt Library in the panel's menu (#28877)
Release Notes: - agent: Added a menu item to open the Prompt Library from the panel's dropdown menu on the top right.
This commit is contained in:
parent
456e54b87c
commit
db94d6d767
3 changed files with 6 additions and 4 deletions
|
@ -630,6 +630,7 @@
|
||||||
"ctrl-alt-n": "agent::NewTextThread",
|
"ctrl-alt-n": "agent::NewTextThread",
|
||||||
"ctrl-shift-h": "agent::OpenHistory",
|
"ctrl-shift-h": "agent::OpenHistory",
|
||||||
"ctrl-alt-c": "agent::OpenConfiguration",
|
"ctrl-alt-c": "agent::OpenConfiguration",
|
||||||
|
"ctrl-alt-p": "assistant::OpenPromptLibrary",
|
||||||
"ctrl-i": "agent::ToggleProfileSelector",
|
"ctrl-i": "agent::ToggleProfileSelector",
|
||||||
"ctrl-alt-/": "assistant::ToggleModelSelector",
|
"ctrl-alt-/": "assistant::ToggleModelSelector",
|
||||||
"ctrl-shift-a": "agent::ToggleContextPicker",
|
"ctrl-shift-a": "agent::ToggleContextPicker",
|
||||||
|
|
|
@ -286,6 +286,7 @@
|
||||||
"cmd-alt-n": "agent::NewTextThread",
|
"cmd-alt-n": "agent::NewTextThread",
|
||||||
"cmd-shift-h": "agent::OpenHistory",
|
"cmd-shift-h": "agent::OpenHistory",
|
||||||
"cmd-alt-c": "agent::OpenConfiguration",
|
"cmd-alt-c": "agent::OpenConfiguration",
|
||||||
|
"cmd-alt-p": "assistant::OpenPromptLibrary",
|
||||||
"cmd-i": "agent::ToggleProfileSelector",
|
"cmd-i": "agent::ToggleProfileSelector",
|
||||||
"cmd-alt-/": "assistant::ToggleModelSelector",
|
"cmd-alt-/": "assistant::ToggleModelSelector",
|
||||||
"cmd-shift-a": "agent::ToggleContextPicker",
|
"cmd-shift-a": "agent::ToggleContextPicker",
|
||||||
|
|
|
@ -1113,16 +1113,16 @@ impl AssistantPanel {
|
||||||
"New Text Thread",
|
"New Text Thread",
|
||||||
NewTextThread.boxed_clone(),
|
NewTextThread.boxed_clone(),
|
||||||
)
|
)
|
||||||
.action("Settings", OpenConfiguration.boxed_clone())
|
.action("Prompt Library", Box::new(OpenPromptLibrary))
|
||||||
|
.action("Settings", Box::new(OpenConfiguration))
|
||||||
.separator()
|
.separator()
|
||||||
.action(
|
.action(
|
||||||
"Install MCPs",
|
"Install MCPs",
|
||||||
zed_actions::Extensions {
|
Box::new(zed_actions::Extensions {
|
||||||
category_filter: Some(
|
category_filter: Some(
|
||||||
zed_actions::ExtensionCategoryFilter::ContextServers,
|
zed_actions::ExtensionCategoryFilter::ContextServers,
|
||||||
),
|
),
|
||||||
}
|
}),
|
||||||
.boxed_clone(),
|
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
))
|
))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue