# `MingaEditor.KeystrokeHistory`
[🔗](https://github.com/jsmestad/minga/blob/main/lib/minga_editor/keystroke_history.ex#L1)

Bounded list of the most recent keystrokes for the lossage display (`SPC h l`).

A pure functional module, no GenServer. The struct lives on
`MingaEditor.State` (global, not per-tab) and is updated once per
key event, after dispatch but before post-key housekeeping.

Entries are stored newest-first internally and returned in
chronological order by `entries/1`.

# `entry`

```elixir
@type entry() :: MingaEditor.KeystrokeHistory.Entry.t()
```

# `t`

```elixir
@type t() :: %MingaEditor.KeystrokeHistory{
  entries: [entry()],
  max_size: pos_integer()
}
```

# `entries`

```elixir
@spec entries(t()) :: [entry()]
```

# `new`

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

# `new`

```elixir
@spec new(pos_integer()) :: t()
```

# `record`

```elixir
@spec record(t(), entry()) :: t()
```

# `size`

```elixir
@spec size(t()) :: non_neg_integer()
```

---

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