Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
assistant: Rename action from New Context to New Chat (#25455)
Danilo Lealf0202910397d
diff --git a/assets/keymaps/default-linux.json b/assets/keymaps/default-linux.jsonindex 1eb646c311d..1893ef6e13c 100644--- a/assets/keymaps/default-linux.json+++ b/assets/keymaps/default-linux.json@@ -184,9 +184,9 @@"ctrl-alt-/": "assistant::ToggleModelSelector","ctrl-k h": "assistant::DeployHistory","ctrl-k l": "assistant::DeployPromptLibrary",- "new": "assistant::NewContext",- "ctrl-t": "assistant::NewContext",- "ctrl-n": "assistant::NewContext"+ "new": "assistant::NewChat",+ "ctrl-t": "assistant::NewChat",+ "ctrl-n": "assistant::NewChat"}},{diff --git a/assets/keymaps/default-macos.json b/assets/keymaps/default-macos.jsonindex 880714c2e80..a3f60175f2e 100644--- a/assets/keymaps/default-macos.json+++ b/assets/keymaps/default-macos.json@@ -211,8 +211,8 @@"cmd-alt-/": "assistant::ToggleModelSelector","cmd-k h": "assistant::DeployHistory","cmd-k l": "assistant::DeployPromptLibrary",- "cmd-t": "assistant::NewContext",- "cmd-n": "assistant::NewContext"+ "cmd-t": "assistant::NewChat",+ "cmd-n": "assistant::NewChat"}},{diff --git a/crates/assistant/src/assistant.rs b/crates/assistant/src/assistant.rsindex 7817c958b39..3c2c1db9974 100644--- a/crates/assistant/src/assistant.rs+++ b/crates/assistant/src/assistant.rs@@ -33,7 +33,7 @@ actions!([InsertActivePrompt,DeployHistory,- NewContext,+ NewChat,CycleNextInlineAssist,CyclePreviousInlineAssist]diff --git a/crates/assistant/src/assistant_panel.rs b/crates/assistant/src/assistant_panel.rsindex e0791e00393..d40640246d6 100644--- a/crates/assistant/src/assistant_panel.rs+++ b/crates/assistant/src/assistant_panel.rs@@ -1,6 +1,6 @@use crate::assistant_configuration::{ConfigurationView, ConfigurationViewEvent};use crate::{- terminal_inline_assistant::TerminalInlineAssistant, DeployHistory, InlineAssistant, NewContext,+ terminal_inline_assistant::TerminalInlineAssistant, DeployHistory, InlineAssistant, NewChat,};use anyhow::{anyhow, Result};use assistant_context_editor::{@@ -129,7 +129,7 @@ impl AssistantPanel {workspace.project().clone(),Default::default(),None,- NewContext.boxed_clone(),+ NewChat.boxed_clone(),window,cx,);@@ -228,12 +228,12 @@ impl AssistantPanel {IconButton::new("new-chat", IconName::Plus).icon_size(IconSize::Small).on_click(cx.listener(|_, _, window, cx| {- window.dispatch_action(NewContext.boxed_clone(), cx)+ window.dispatch_action(NewChat.boxed_clone(), cx)})).tooltip(move |window, cx| {Tooltip::for_action_in("New Chat",- &NewContext,+ &NewChat,&focus_handle,window,cx,@@ -256,7 +256,7 @@ impl AssistantPanel {let focus_handle = _pane.focus_handle(cx);Some(ContextMenu::build(window, cx, move |menu, _, _| {menu.context(focus_handle.clone())- .action("New Chat", Box::new(NewContext))+ .action("New Chat", Box::new(NewChat)).action("History", Box::new(DeployHistory)).action("Prompt Library", Box::new(DeployPromptLibrary)).action("Configure", Box::new(ShowConfiguration))@@ -760,7 +760,7 @@ impl AssistantPanel {pub fn create_new_context(workspace: &mut Workspace,- _: &NewContext,+ _: &NewChat,window: &mut Window,cx: &mut Context<Workspace>,) {@@ -1206,7 +1206,7 @@ impl Render for AssistantPanel {v_flex().key_context("AssistantPanel").size_full()- .on_action(cx.listener(|this, _: &NewContext, window, cx| {+ .on_action(cx.listener(|this, _: &NewChat, window, cx| {this.new_context(window, cx);})).on_action(cx.listener(|this, _: &ShowConfiguration, window, cx| {