Adamantine::DocumentOrchestrator
Constants
MAX_FILE_BYTES = (16 * 1024) * 1024
MAX_TEXT_PREVIEW_BYTES = 32 * 1024
Constructors
new(document_session : DocumentSession, editor_tabs : Tui::TabbedPanel, status_log : Tui::Log, focus_editor : Proc(Tui::TextEditor, Nil), style_editor : Proc(Tui::TextEditor, OpenBuffer | Nil, Nil), configure_editor_lsp_styles : Proc(Tui::TextEditor, OpenBuffer, Nil), detect_language : Proc(Path, String), path_to_uri : Proc(Path, String), uri_to_path : Proc(String, Path | Nil), update_header : Proc(Nil), sync_open : Proc(OpenBuffer, Nil), sync_change : Proc(OpenBuffer, Nil), sync_save : Proc(OpenBuffer, Nil), close_lsp_document : Proc(String, Nil), current_lsp_context : Proc(CurrentLspContext))
SourceInstance methods
close_active_tab
Sourcecurrent_buffer
Sourcecurrent_editor
Sourcefocus_active_editor
Sourcejump_back
Sourcejump_forward
Sourceopen_file(path : Path, cursor_line : Int32 | Nil = nil, cursor_character : Int32 | Nil = nil) : Bool
Sourcerename_tab(buffer : OpenBuffer) : Nil
Sourcesave_active
Sourceswitch_to_next_tab
Sourceswitch_to_previous_tab
Source