"""What a person's own prompting habits say about shortcuts: which ones land in the same scene (pairs) and which shot follows which (follows). Mined on demand by reading every saved project's scene text for triggers typed verbatim, so there is nothing learned to store and nothing to go stale. Keyed by shortcut name, which is what the picker identifies a shortcut by.""" from __future__ import annotations import re from . import projects, shortcuts def stats() -> dict: pats = [] for sc in shortcuts.listing(): if not sc.enabled: continue for trig in sc.triggers: t = trig.strip().lower() if t: pats.append((sc.name, re.compile(r"(?