FSM state for Command (:) mode.
Owns the command-line input without the leading :, its grapheme cursor position, completion selection, and the standard count/leader fields.
Summary
Functions
Deletes the grapheme before the cursor and resets completion selection.
Inserts text at the cursor and resets completion selection.
Moves the completion selection; the presenter wraps it to the candidate count.
Moves the cursor by one grapheme within the command input.
Creates command input with the cursor at its end.
Replaces command input, moves the cursor to its end, and resets completion selection.
Types
@type t() :: %Minga.Mode.CommandState{ candidate_index: integer(), count: non_neg_integer() | nil, cursor: non_neg_integer(), input: String.t(), leader_keys: [String.t()], leader_node: Minga.Keymap.Bindings.node_t() | nil }
Functions
Deletes the grapheme before the cursor and resets completion selection.
Inserts text at the cursor and resets completion selection.
Moves the completion selection; the presenter wraps it to the candidate count.
Moves the cursor by one grapheme within the command input.
Creates command input with the cursor at its end.
Replaces command input, moves the cursor to its end, and resets completion selection.