Minga.Mode.VisualState (Minga v0.1.0)

Copy Markdown View Source

FSM state for Visual mode.

Carries the selection type (characterwise or linewise), the fixed anchor position of the selection, and the standard count/leader fields.

Summary

Types

Selection type: characterwise or linewise.

t()

Text object modifier (inner vs around) for visual text object selection.

Types

selection_type()

@type selection_type() :: :char | :line

Selection type: characterwise or linewise.

t()

@type t() :: %Minga.Mode.VisualState{
  count: non_neg_integer() | nil,
  filetype: atom(),
  leader_keys: [String.t()],
  leader_node: Minga.Keymap.Bindings.node_t() | nil,
  mode_trie: Minga.Keymap.Bindings.node_t() | nil,
  text_object_modifier: text_object_modifier(),
  visual_anchor: {non_neg_integer(), non_neg_integer()},
  visual_type: selection_type()
}

text_object_modifier()

@type text_object_modifier() :: :inner | :around | nil

Text object modifier (inner vs around) for visual text object selection.