MingaEditor.Renderer.Minibuffer (Minga v0.1.0)

Copy Markdown View Source

Minibuffer (bottom status line) rendering: search prompt, command input, status messages, and the empty-state fallback.

Accepts a map with focused fields (mode, mode_state, theme, status_msg, diagnostic_hint) instead of the full EditorState. The pipeline's Chrome stage constructs this map.

Returns DisplayList.draw() tuples.

Summary

Types

Focused input for minibuffer rendering.

Functions

Renders the minibuffer at row with a max width of cols.

Types

input()

@type input() :: map()

Focused input for minibuffer rendering.

The map should contain:

  • :mode — current editor mode
  • :mode_state — mode-specific state (search input, command input, etc.)
  • :theme — theme struct with .minibuffer colors
  • :status_msg — status message string or nil
  • :diagnostic_hint — pre-fetched diagnostic string or nil
  • :buffers%{active: pid | nil} (only used for legacy path)

Functions

render(state, row, cols)

Renders the minibuffer at row with a max width of cols.