Skip to main content

Module file_search_bridge

Module file_search_bridge 

Source
Expand description

Bridge module integrating vtcode-indexer::file_search with grep_file.rs

This module provides a clean interface to use the file-search module for file discovery operations, replacing direct ripgrep subprocess calls for file enumeration.

It handles:

  • Converting between vtcode-core and vtcode-indexer::file_search APIs
  • Integrating file search results with existing grep workflows

Structs§

FileSearchConfig
Configuration for file search operations

Enums§

FileMatchType
A single file match result.

Constants§

MAX_FILE_SEARCH_RESULTS
Maximum number of paths returned by the file-search bridge.

Functions§

effective_max_results
Normalize an externally supplied result limit before it reaches the parallel indexer.
file_matches_only
Keep only file matches, dropping directory entries.
filter_by_extension
Filter file matches by file extension
filter_by_pattern
Filter file matches by path pattern
match_filename
Get filename from a file match
search_files
Search for files matching a pattern
search_files_async
Search for files without blocking the Tokio worker running the caller.