Module buffer

Module buffer 

Source
Expand description

Buffer extension utilities like line access, cursor‑based insertion, cursor position model, etc.

Modules§

__mock_MockBufferExt
__mock_MockBufferExt_BufferExt
mock

Structs§

CursorPosition
Represents the current cursor coordinates in the active Window.
MockBufferExt
Extension trait for Buffer to provide extra functionalities.
MockBufferExt_BufferExt 🔒

Enums§

TextBoundary
Defines boundaries for text selection within lines.

Traits§

BufferExt
Extension trait for Buffer to provide extra functionalities.

Functions§

create
Creates a new listed, not scratch, buffer.
get_absolute_path
Retrieves the absolute path of the specified buffer.
get_alternate_or_new
Retrieves the alternate buffer or creates a new one if none exists.
get_current_line
get_relative_path_to_cwd
Retrieves the relative path of the given buffer from the current working directory.
open
Opens a file in the editor and positions the cursor at the specified line and column.
replace_text_and_notify_if_error
Replaces the text in the specified selection with the replacement lines.
set_current
Sets the specified buffer as the current buffer in the active window.