Cri::Tui::UiRuntime
Inherits Cri::Effects::UiSink < Reference < Object
Application-scoped UI root. All buffer and panel changes publish to one event bus; workspaces only own panel/layout state.
Constructors
new(events : EventBus = EventBus.new, clipboard : Clipboard = MemoryClipboard.new)
SourceInstance methods
actions
Sourceactivity
Sourcebegin_command
Command mode is a command-line operation, so it temporarily focuses the dedicated Prompt buffer and restores the previous panel on exit.
begin_insert
Sourcebegin_visual
Sourcebuffers
Sourceclipboard
Sourcecreate_buffer(id : String, content : String = "", owner : String = "extension", persistent : Bool = false, mode : Mode = Mode::Normal) : TextBuffer
Sourcecreate_panel(workspace_id : String, id : String, buffer_id : String, title : String, position : String = "right", editable : Bool = true) : Panel
Sourcecreate_text_panel(id : String, title : String, position : String = "right", owner : String = "extension") : TextBuffer
Sourcedefine_ui_style(group : String, foreground : Int32 | Nil, bold : Bool, underline : Bool, owner : String) : String
Sourceend_command
Sourceend_insert
Sourceend_visual
Sourceevents
Sourcefocused_buffer
Sourceinput
Sourceinput_panel
Sourcekeymap
Sourcemode
Sourceopen_ui_panel(id : String, buffer_id : String, title : String, position : String, focus : Bool, owner : String) : String
Sourceprompt_focused?
Sourcerestore_session(session : Session)
Sourceset_ui_highlight(id : String, start : Int32, finish : Int32, group : String, owner : String) : String
Sourcesubscribe_all
Sourcetheme
Sourcetranscript
Sourceworkspace
Sourceworkspaces
Sourceyank_selection
Source