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", "procinfo",
"project", "project",
"rand 0.8.5", "rand 0.8.5",
"search",
"serde", "serde",
"serde_derive", "serde_derive",
"settings", "settings",

View file

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

View file

@ -99,6 +99,9 @@ impl TerminalPanel {
)) ))
.into_any() .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 pane
}); });
let subscriptions = vec![ let subscriptions = vec![