Expand description
One working tree’s files, and the ranking the @ trigger reads a query
against.
The walk is forge_agent::env::file_index’s and the shape is here
because the readers are not one: a view’s mention list and the seat’s
own loop, which walks it and pushes the whole index as
FileIndexChanged. The walk itself stays where it was, with the
rest of the environment’s I/O.
Re-exports§
Structs§
- File
Candidate - File
Index - The files under one root, keyed by their path relative to it.
Functions§
- match_
tier 🔒 - How well
candidatematches, smaller being better. An empty query matches everything equally, which is what a bare@shows. - rank_
and_ truncate_ candidates - Best match first, then shallowest, then alphabetically, cut to
limit. - respect_
gitignore - Whether a walk honours gitignore, from the CLI’s per-user preferences
document: its
respectGitignorekey, absent or not a boolean reading astrue, which is the CLI’s own default. Every view reads the key here, so none can drift on how it is read.