Expand description
Fast fuzzy file search library for VT Code.
Uses the ignore crate (same as ripgrep) for parallel directory traversal
and nucleo-matcher for fuzzy matching.
§Example
ⓘ
use std::num::NonZero;
use std::path::Path;
use std::sync::Arc;
use std::sync::atomic::AtomicBool;
use vtcode_file_search::run;
let results = run(
"main",
NonZero::new(100).unwrap(),
Path::new("."),
vec![],
NonZero::new(4).unwrap(),
Arc::new(AtomicBool::new(false)),
false,
true,
)?;
for m in results.matches {
println!("{}: {}", m.path, m.score);
}Structs§
- File
Match - A single file match result.
- File
Search Config - Configuration for file search operations.
- File
Search Results - Complete search results with total match count.
Functions§
- file_
name_ from_ path - Extract the filename from a path, with fallback to the full path.
- run
- Run fuzzy file search with parallel traversal.