pub fn run(
pattern_text: &str,
limit: NonZero<usize>,
search_directory: &Path,
exclude: Vec<String>,
threads: NonZero<usize>,
cancel_flag: Arc<AtomicBool>,
compute_indices: bool,
respect_gitignore: bool,
) -> Result<FileSearchResults>Expand description
Run fuzzy file search with parallel traversal.
§Arguments
pattern_text- Fuzzy search patternlimit- Maximum number of resultssearch_directory- Root directory to searchexclude- Exclusion patterns (glob-style)threads- Number of worker threadscancel_flag- Atomic flag for cancellationcompute_indices- Whether to compute character indices for highlightingrespect_gitignore- Whether to respect .gitignore files
§Returns
FileSearchResults containing matched files and total match count.