Expand description
Path resolution utilities: fuzzy matching, sigil expansion, and unified path parsing.
Structs§
- Path
Entry - A single entry returned by
PathSource::all_filesandPathSource::find_like. - Path
Match - A resolved path match with fuzzy-match score and kind.
- Sigil
Expansion - Result of expanding a sigil like
@todoor@config. - Unified
Path - Result of resolving a unified path like
src/main.py/Foo/bar
Enums§
- Path
Match Kind - Whether a resolved path points to a file or a directory.
Traits§
- Path
Source - 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
@todoor@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/barto 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.