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",
|
||||
"bindings": {
|
||||
"cmd-n": "assistant::NewConversation",
|
||||
"cmd-g": "search::SelectNextMatch",
|
||||
"cmd-shift-g": "search::SelectPrevMatch"
|
||||
}
|
||||
|
|
|
@ -86,9 +86,7 @@ actions!(
|
|||
pub fn init(cx: &mut AppContext) {
|
||||
settings::register::<AssistantSettings>(cx);
|
||||
cx.add_action(
|
||||
|this: &mut AssistantPanel,
|
||||
_: &workspace::NewFile,
|
||||
cx: &mut ViewContext<AssistantPanel>| {
|
||||
|this: &mut AssistantPanel, _: &NewConversation, cx: &mut ViewContext<AssistantPanel>| {
|
||||
this.new_conversation(cx);
|
||||
},
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue