diff options
| author | Aram Drevekenin <aram@poor.dev> | 2023-06-09 22:49:12 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-09 22:49:12 +0200 |
| commit | 8485b1c2969e7f88feaf2f809b6b405fbe442ba4 (patch) | |
| tree | 989148565b8883d9a04e35f795a3f50008c0e1b1 /default-plugins/strider | |
| parent | docs(changelog): plugin system overhaul (diff) | |
| download | sl0ppij-8485b1c2969e7f88feaf2f809b6b405fbe442ba4.tar.gz sl0ppij-8485b1c2969e7f88feaf2f809b6b405fbe442ba4.tar.xz sl0ppij-8485b1c2969e7f88feaf2f809b6b405fbe442ba4.zip | |
feat(plugins): extensive plugin api (#2516)
* feat(plugins): add our entire API
* style(fmt): rustfmt
* fix(detach): make it work again
Diffstat (limited to 'default-plugins/strider')
| -rw-r--r-- | default-plugins/strider/src/search/mod.rs | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/default-plugins/strider/src/search/mod.rs b/default-plugins/strider/src/search/mod.rs index 5aba9c4d..1a9db2da 100644 --- a/default-plugins/strider/src/search/mod.rs +++ b/default-plugins/strider/src/search/mod.rs @@ -204,17 +204,7 @@ impl Search { ) -> Vec<SearchResult> { let mut matches = vec![]; for ((file_name, line_number), line_entry) in &self.file_contents { - if line_entry.contains("struct") { - if line_entry.len() < 400 { - eprintln!("matching against: {:?}", line_entry) - } else { - eprintln!("matching again line that has struct but is very long") - } - } if let Some((score, indices)) = matcher.fuzzy_indices(&line_entry, &search_term) { - if line_entry.contains("struct") { - eprintln!("score: {:?}", score) - } matches.push(SearchResult::new_file_line( score, indices, @@ -222,10 +212,6 @@ impl Search { line_entry.clone(), *line_number, )); - } else { - if line_entry.contains("struct") { - eprintln!("no score!") - } } } matches |
