Fix creating new conversations in the assistant via cmd-n
Co-Authored-By: Marshall <marshall@zed.dev>
This commit is contained in:
parent
2beed1c811
commit
91dac47d62
2 changed files with 2 additions and 3 deletions
|
@ -189,6 +189,7 @@
|
||||||
{
|
{
|
||||||
"context": "AssistantPanel",
|
"context": "AssistantPanel",
|
||||||
"bindings": {
|
"bindings": {
|
||||||
|
"cmd-n": "assistant::NewConversation",
|
||||||
"cmd-g": "search::SelectNextMatch",
|
"cmd-g": "search::SelectNextMatch",
|
||||||
"cmd-shift-g": "search::SelectPrevMatch"
|
"cmd-shift-g": "search::SelectPrevMatch"
|
||||||
}
|
}
|
||||||
|
|
|
@ -86,9 +86,7 @@ actions!(
|
||||||
pub fn init(cx: &mut AppContext) {
|
pub fn init(cx: &mut AppContext) {
|
||||||
settings::register::<AssistantSettings>(cx);
|
settings::register::<AssistantSettings>(cx);
|
||||||
cx.add_action(
|
cx.add_action(
|
||||||
|this: &mut AssistantPanel,
|
|this: &mut AssistantPanel, _: &NewConversation, cx: &mut ViewContext<AssistantPanel>| {
|
||||||
_: &workspace::NewFile,
|
|
||||||
cx: &mut ViewContext<AssistantPanel>| {
|
|
||||||
this.new_conversation(cx);
|
this.new_conversation(cx);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue