Pure lifecycle owner for delayed which-key presentation.
Summary
Functions
Returns whether a leader prefix is active.
Begins a new hidden which-key generation.
Dismisses which-key while retaining its monotonic generation.
Moves to the next display page.
Moves to the previous display page.
Advances a leader prefix with a new generation while preserving visibility.
Records the timer handle only for the current active generation.
Reveals only the matching active generation.
Returns whether the popup is visible.
Types
@type generation() :: non_neg_integer()
@type t() :: %MingaEditor.State.WhichKey{ generation: generation(), node: Minga.Keymap.Bindings.node_t() | nil, page: non_neg_integer(), prefix_keys: [String.t()], show: boolean(), timer: reference() | nil }
Functions
Returns whether a leader prefix is active.
@spec begin(t(), Minga.Keymap.Bindings.node_t(), [String.t()]) :: t()
Begins a new hidden which-key generation.
Dismisses which-key while retaining its monotonic generation.
Moves to the next display page.
Moves to the previous display page.
@spec progress(t(), Minga.Keymap.Bindings.node_t(), [String.t()]) :: t()
Advances a leader prefix with a new generation while preserving visibility.
@spec record_timer(t(), generation(), reference()) :: t()
Records the timer handle only for the current active generation.
@spec reveal(t(), generation()) :: t()
Reveals only the matching active generation.
Returns whether the popup is visible.