WIP: Start sketching in ProjectFindView

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Co-Authored-By: Max Brunsfeld <max@zed.dev>
This commit is contained in:
Antonio Scandurra 2022-02-24 19:07:00 +01:00
parent e83d1fc9fc
commit 6d9b003634
5 changed files with 1083 additions and 955 deletions

View file

@ -42,7 +42,7 @@ impl SearchQuery {
Ok(Self::Regex { multiline, regex })
}
pub fn is_contained_in_stream<T: Read>(&self, stream: T) -> Result<bool> {
pub fn detect<T: Read>(&self, stream: T) -> Result<bool> {
match self {
SearchQuery::Text { search } => {
let mat = search.stream_find_iter(stream).next();