Expand description
Buffer extension utilities like line access, cursor‑based insertion, cursor position model, etc.
Modules§
Structs§
- Cursor
Position - Represents the current cursor coordinates in the active
Window. - Mock
Buffer Ext - Extension trait for
Bufferto provide extra functionalities. - Mock
Buffer 🔒Ext_ Buffer Ext
Enums§
- Text
Boundary - Defines boundaries for text selection within lines.
Traits§
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
selectionwith thereplacementlines. - set_
current - Sets the specified buffer as the current buffer in the active window.