Crate vtcode_file_search

Crate vtcode_file_search 

Source
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§

FileMatch
A single file match result.
FileSearchConfig
Configuration for file search operations.
FileSearchResults
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.