Skip to content

FuzzyMatch

🛈 DocStrings

A file the fuzzy search found.

Source code in src/acptui/completion.py
@dataclass(frozen=True)
class FuzzyMatch:
    """A file the fuzzy search found."""

    path: str
    score: float
    positions: tuple[int, ...]
    """Indices of the matched characters in ``path``, ascending (for highlighting)."""

positions instance-attribute

positions: tuple[int, ...]

Indices of the matched characters in path, ascending (for highlighting).

:fa-brands-github: Show source on GitHub