Skip to main content

Module file_index

Module file_index 

Source
Expand description

The file index, as this crate’s callers reach it.

The type, the walk over it and the ranking live in forge_workspace::file_index: two views read them - the web view’s mention list and composer, and the seat’s own loop, which walks the tree and pushes the index whole - so the crate they all read is where they sit. This module is the path they were reached by.

Structs§

FileIndex
The files under one root, keyed by their path relative to it.

Functions§

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 respectGitignore key, absent or not a boolean reading as true, which is the CLI’s own default. Every view reads the key here, so none can drift on how it is read.