# `MingaEditor.State.WhichKey`
[🔗](https://github.com/jsmestad/minga/blob/main/lib/minga_editor/state/whichkey.ex#L1)

Groups which-key popup fields from EditorState.

Tracks the current trie node (for leader-key navigation), the pending
timeout reference, and whether the popup should be displayed.

# `t`

```elixir
@type t() :: %MingaEditor.State.WhichKey{
  node: Minga.Keymap.Bindings.node_t() | nil,
  page: non_neg_integer(),
  prefix_keys: [String.t()],
  show: boolean(),
  timer: MingaEditor.UI.WhichKey.timer_ref() | nil
}
```

# `clear`

```elixir
@spec clear(t()) :: t()
```

Returns a cleared (reset) which-key state.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
