class

Adamantine::DocumentOrchestrator

Inherits Reference < Object

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))
Source

Instance methods

can_close_tab?(tab_id : String) : Bool
Source
close_active_tab
Source
close_tab(tab_id : String) : Nil
Source
configure_editor_lsp_styles(editor : Tui::TextEditor, buffer : OpenBuffer) : Nil
Source
current_buffer
Source
current_editor
Source
file_tab_label(buffer : OpenBuffer | Nil) : String
Source
focus_active_editor
Source
jump_back
Source
jump_forward
Source
move_editor_cursor(editor : Tui::TextEditor, line : Int32, character : Int32) : Nil
Source
open_file(path : Path, cursor_line : Int32 | Nil = nil, cursor_character : Int32 | Nil = nil) : Bool
Source
prune_navigation_forward_history
Source
prune_navigation_history
Source
rename_tab(buffer : OpenBuffer) : Nil
Source
save_active
Source
switch_to_next_tab
Source
switch_to_previous_tab
Source
switch_to_tab_by_position(position : Int32) : Nil
Source
switch_to_tab_by_position_buffer(path_str : String) : Nil
Source
uri_to_path(uri : String) : Path | Nil
Source

Nested types