wip
This commit is contained in:
committed by
Nathan Sobo
parent
57ffa8201e
commit
dd1a2a9e44
@@ -1,5 +1,5 @@
|
||||
use fuzzy2::{StringMatch, StringMatchCandidate};
|
||||
use gpui2::{Executor, HighlightStyle};
|
||||
use gpui2::{BackgroundExecutor, HighlightStyle};
|
||||
use std::ops::Range;
|
||||
|
||||
#[derive(Debug)]
|
||||
@@ -57,7 +57,7 @@ impl<T> Outline<T> {
|
||||
}
|
||||
}
|
||||
|
||||
pub async fn search(&self, query: &str, executor: Executor) -> Vec<StringMatch> {
|
||||
pub async fn search(&self, query: &str, executor: BackgroundExecutor) -> Vec<StringMatch> {
|
||||
let query = query.trim_start();
|
||||
let is_path_query = query.contains(' ');
|
||||
let smart_case = query.chars().any(|c| c.is_uppercase());
|
||||
|
||||
Reference in New Issue
Block a user