# `Minga.Mode.SearchState`
[🔗](https://github.com/jsmestad/minga/blob/main/lib/minga/mode/search_state.ex#L1)

FSM state for Search mode (`/` and `?`).

Tracks the accumulated search input, direction, and the cursor position
before the search started (for restore on Escape).

# `direction`

```elixir
@type direction() :: :forward | :backward
```

Search direction.

# `t`

```elixir
@type t() :: %Minga.Mode.SearchState{
  count: non_neg_integer() | nil,
  direction: direction(),
  input: String.t(),
  original_cursor: {non_neg_integer(), non_neg_integer()}
}
```

---

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