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:
parent
e83d1fc9fc
commit
6d9b003634
5 changed files with 1083 additions and 955 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue