Add search bar to terminal panel

This commit is contained in:
Antonio Scandurra 2023-05-25 14:45:59 +02:00
parent dba7ec4a35
commit 414b97adce
3 changed files with 5 additions and 0 deletions

1
Cargo.lock generated
View file

@ -6809,6 +6809,7 @@ dependencies = [
"procinfo",
"project",
"rand 0.8.5",
"search",
"serde",
"serde_derive",
"settings",

View file

@ -14,6 +14,7 @@ editor = { path = "../editor" }
language = { path = "../language" }
gpui = { path = "../gpui" }
project = { path = "../project" }
search = { path = "../search" }
settings = { path = "../settings" }
theme = { path = "../theme" }
util = { path = "../util" }

View file

@ -99,6 +99,9 @@ impl TerminalPanel {
))
.into_any()
});
let buffer_search_bar = cx.add_view(search::BufferSearchBar::new);
pane.toolbar()
.update(cx, |toolbar, cx| toolbar.add_item(buffer_search_bar, cx));
pane
});
let subscriptions = vec![