Skip to main content

Crate normalize_path_resolve

Crate normalize_path_resolve 

Source
Expand description

Path resolution utilities: fuzzy matching, sigil expansion, and unified path parsing.

Structs§

PathEntry
A single entry returned by PathSource::all_files and PathSource::find_like.
PathMatch
A resolved path match with fuzzy-match score and kind.
SigilExpansion
Result of expanding a sigil like @todo or @config.
UnifiedPath
Result of resolving a unified path like src/main.py/Foo/bar

Enums§

PathMatchKind
Whether a resolved path points to a file or a directory.

Traits§

PathSource
Source of indexed file paths (e.g., from a database index).

Functions§

all_files
Get all files in the repository (uses path source if available, else walks filesystem)
expand_sigil
Expand an alias query like @todo or @config/section. Returns None if the query doesn’t start with @ or the alias is unknown.
is_glob_pattern
Check if a pattern contains glob characters (* ? [)
resolve
Resolve a fuzzy query to matching paths.
resolve_unified
Resolve a unified path like src/main.py/Foo/bar to file + symbol components.
resolve_unified_all
Resolve a query to ALL matching unified paths (for ambiguous queries). Returns empty vec if no matches, single-element vec if unambiguous, or multiple elements if query matches multiple files.