assistant2: Show the popover keybinding when context is empty (#22452)
This PR makes it so we always show the "Add Context {keybinding}" text when there's no context pills attached. Also, while we haven't fully implemented the mention system (triggered by typing `@`), we removed the instruction on the message editor placeholder. Once that's fully in place, we should return with it! <img width="800" alt="Screenshot 2024-12-27 at 1 35 56 PM" src="https://github.com/user-attachments/assets/201cf784-e7ac-420a-adf2-51b6e075c2b6" /> Release Notes: - N/A --------- Co-authored-by: Agus Zubiaga <hi@aguz.me>
This commit is contained in:
parent
ed61abb8b8
commit
56b425fced
2 changed files with 41 additions and 15 deletions
|
@ -54,7 +54,7 @@ impl MessageEditor {
|
|||
|
||||
let editor = cx.new_view(|cx| {
|
||||
let mut editor = Editor::auto_height(10, cx);
|
||||
editor.set_placeholder_text("Ask anything, @ to add context", cx);
|
||||
editor.set_placeholder_text("Ask anything…", cx);
|
||||
editor.set_show_indent_guides(false, cx);
|
||||
|
||||
editor
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue