Revert "Remove semantic search UI"

This reverts commit c0f042b39a.
This commit is contained in:
Mikayla 2023-08-18 15:59:26 -07:00
parent cb55204e22
commit 48553d7c8f
No known key found for this signature in database
7 changed files with 309 additions and 91 deletions

View file

@ -8,9 +8,7 @@ use gpui::{
pub use mode::SearchMode;
use project::search::SearchQuery;
pub use project_search::{ProjectSearchBar, ProjectSearchView};
use theme::components::{
action_button::ActionButton, svg::Svg, ComponentExt, ToggleIconButtonStyle,
};
use theme::components::{action_button::ActionButton, ComponentExt, ToggleIconButtonStyle};
pub mod buffer_search;
mod history;
@ -35,6 +33,7 @@ actions!(
NextHistoryQuery,
PreviousHistoryQuery,
ActivateTextMode,
ActivateSemanticMode,
ActivateRegexMode
]
);
@ -95,7 +94,7 @@ impl SearchOptions {
format!("Toggle {}", self.label()),
tooltip_style,
)
.with_contents(Svg::new(self.icon()))
.with_contents(theme::components::svg::Svg::new(self.icon()))
.toggleable(active)
.with_style(button_style)
.element()