Feat: text selection using mouse
Some checks failed
Deploy Website / deploy (push) Failing after 30s

This commit is contained in:
2026-02-25 23:20:42 +01:00
parent 6892575a53
commit e956346ae9
5 changed files with 125 additions and 6 deletions

View File

@@ -99,6 +99,14 @@ impl Editor {
self.text.is_selecting()
}
pub fn move_cursor_to(&mut self, row: u16, col: u16) {
self.text.move_cursor(tui_textarea::CursorMove::Jump(row, col));
}
pub fn scroll_offset(&self) -> u16 {
self.scroll_offset.get()
}
pub fn copy(&mut self) {
self.text.copy();
}