MingaEditor.State.Interaction (Minga v0.1.0)

Copy Markdown View Source

Per-editor input configuration and transient interaction history.

The value owns editing-model selection, isolated keymap/options services, and keystroke history used by input diagnostics.

Summary

Functions

Commits keystroke history produced by the input recorder.

Creates interaction state from startup configuration.

Types

editing_model()

@type editing_model() :: :vim | :cua

t()

@type t() :: %MingaEditor.State.Interaction{
  editing_model: editing_model(),
  keymap_server: Minga.Keymap.server(),
  keystroke_history: MingaEditor.KeystrokeHistory.t(),
  options_server: Minga.Config.Options.server()
}

Functions

accept_keystroke_history(interaction, history)

@spec accept_keystroke_history(t(), MingaEditor.KeystrokeHistory.t()) :: t()

Commits keystroke history produced by the input recorder.

new(opts \\ [])

@spec new(keyword()) :: t()

Creates interaction state from startup configuration.