Vibe.UI.EditorServer (vibe v0.2.0)

Copy Markdown View Source

:gen_statem wrapper around Vibe.UI.Editor.

Summary

Functions

insert(server, text)

@spec insert(pid() | atom(), String.t()) :: :ok

key(server, key)

@spec key(pid() | atom(), Vibe.UI.Editor.key()) :: [Vibe.UI.Editor.command()]

replace(server, text)

@spec replace(pid() | atom(), String.t()) :: :ok

start_link(opts \\ [])

@spec start_link(keyword()) :: GenServer.on_start()

state(server)

@spec state(pid() | atom()) :: Vibe.UI.Editor.t()