Skip to content

FileIndex

🛈 DocStrings

The workspace files for the fuzzy search, kept in Rust memory for frizbee.

Source code in src/acptui/completion.py
@dataclass
class FileIndex:
    """The workspace files for the fuzzy search, kept in Rust memory for frizbee."""

    root: Path
    paths: list[str]
    """Workspace-relative, ``/``-separated."""
    name_starts: list[int]
    """Where each path's file name starts."""
    stem_lengths: list[int]
    """Length of each file name without its extension (at least 1)."""
    haystacks: frizbee.Haystacks
    built: float

name_starts instance-attribute

name_starts: list[int]

Where each path's file name starts.

paths instance-attribute

paths: list[str]

Workspace-relative, /-separated.

stem_lengths instance-attribute

stem_lengths: list[int]

Length of each file name without its extension (at least 1).

:fa-brands-github: Show source on GitHub