Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

inline assistant: Mention ability to add context with @ in the placeholder (#41950)

Danilo Leal0a4b1ac696ae
diff --git a/crates/agent_ui/src/inline_prompt_editor.rs b/crates/agent_ui/src/inline_prompt_editor.rs
index 89bfd50e37e..ed2a8d327d4 100644
--- a/crates/agent_ui/src/inline_prompt_editor.rs
+++ b/crates/agent_ui/src/inline_prompt_editor.rs
@@ -260,10 +260,10 @@ impl<T: 'static> PromptEditor<T> {
let agent_panel_keybinding =
ui::text_for_action(&zed_actions::assistant::ToggleFocus, window, cx)
- .map(|keybinding| format!("{keybinding} to chat ― "))
+ .map(|keybinding| format!("{keybinding} to chat"))
.unwrap_or_default();
- format!("{action}… ({agent_panel_keybinding}↓↑ for history)")
+ format!("{action}… ({agent_panel_keybinding} ― ↓↑ for history — @ to include context)")
}
pub fn prompt(&self, cx: &App) -> String {