fixup! Remove dead code (for now).
This commit is contained in:
@@ -1,6 +1,3 @@
|
|||||||
use gpui::Action;
|
|
||||||
|
|
||||||
use crate::{ActivateRegexMode, ActivateSemanticMode, ActivateTextMode};
|
|
||||||
// TODO: Update the default search mode to get from config
|
// TODO: Update the default search mode to get from config
|
||||||
#[derive(Copy, Clone, Debug, Default, PartialEq)]
|
#[derive(Copy, Clone, Debug, Default, PartialEq)]
|
||||||
pub enum SearchMode {
|
pub enum SearchMode {
|
||||||
@@ -11,11 +8,11 @@ pub enum SearchMode {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl SearchMode {
|
impl SearchMode {
|
||||||
pub(crate) fn activate_action(&self) -> Box<dyn Action> {
|
pub(crate) fn label(&self) -> &'static str {
|
||||||
match self {
|
match self {
|
||||||
SearchMode::Text => Box::new(ActivateTextMode),
|
SearchMode::Text => "Text",
|
||||||
SearchMode::Semantic => Box::new(ActivateSemanticMode),
|
SearchMode::Semantic => "Semantic",
|
||||||
SearchMode::Regex => Box::new(ActivateRegexMode),
|
SearchMode::Regex => "Regex",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
use std::{borrow::Cow, sync::Arc};
|
use std::sync::Arc;
|
||||||
|
|
||||||
use gpui::{div, Action, Component, ViewContext};
|
use gpui::{Component, ViewContext};
|
||||||
use ui::{Button, ButtonVariant, IconButton};
|
use ui::{Button, ButtonVariant, IconButton};
|
||||||
|
|
||||||
use crate::mode::SearchMode;
|
use crate::mode::SearchMode;
|
||||||
|
|||||||
Reference in New Issue
Block a user