Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/maple-agent/app/src/keymap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ fn catalog_for(os: HostOs) -> Vec<ShortcutSlot> {
"Focus task search",
ShortcutCategory::Chat,
Some("Chat"),
"secondary-k",
"secondary-f",
SlotAction::FocusSearch,
),
slot(
Expand Down
11 changes: 11 additions & 0 deletions apps/maple-agent/app/src/ui/chat/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,17 @@ impl ChatScreen {
}
ChatCommand::ChooseProject => self.toggle_root_menu(cx),
ChatCommand::CopySelection => self.copy_selected_text(cx),
ChatCommand::Escape
if self.sidebar.read(cx).search_input_focused(window, cx)
&& self
.sidebar
.update(cx, |sidebar, cx| sidebar.hide_empty_search(cx)) =>
{
if let Some(composer) = &self.composer {
use gpui::Focusable;
window.focus(&composer.read(cx).focus_handle(cx), cx);
}
}
ChatCommand::Escape if self.application_vim_enabled => {
self.application_escape(window, cx)
}
Expand Down
8 changes: 8 additions & 0 deletions apps/maple-agent/app/src/ui/chat/composer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,14 @@ impl ChatScreen {
ChatCommand::NewTask,
4,
),
(
"header-search",
"search",
"Search",
&super::FocusSearch,
ChatCommand::FocusSearch,
5,
),
]
.into_iter()
.filter(|(_, _, _, _, command, _)| {
Expand Down
2 changes: 2 additions & 0 deletions apps/maple-agent/app/src/ui/chat/navigation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ pub(super) enum ChatRegion {
pub(super) enum SidebarTarget {
Computer(super::computers::Navigate),
NewTask,
Search,
Projects,
Task(String),
Archived,
Expand Down Expand Up @@ -560,6 +561,7 @@ impl ChatScreen {
match self.application_vim.region {
ChatRegion::Sidebar => match self.sidebar.read(cx).vim_selected().cloned() {
Some(SidebarTarget::NewTask) => self.new_session(cx),
Some(SidebarTarget::Search) => self.focus_sidebar_search(window, cx),
Some(SidebarTarget::Projects) => self.sidebar.update(cx, |sidebar, cx| {
let open = sidebar.switcher_menu_open();
sidebar.set_switcher_menu_open(!open, cx);
Expand Down
Loading
Loading