summaryrefslogtreecommitdiffstats
path: root/core/src/text
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/text')
-rw-r--r--core/src/text/editor.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/src/text/editor.rs b/core/src/text/editor.rs
index 56cda3ef..5532fac5 100644
--- a/core/src/text/editor.rs
+++ b/core/src/text/editor.rs
@@ -9,6 +9,12 @@ pub trait Editor: Sized + Default {
fn cursor(&self) -> Cursor;
+ fn selection(&self) -> Option<String>;
+
+ fn line(&self, index: usize) -> Option<&str>;
+
+ fn line_count(&self) -> usize;
+
fn perform(&mut self, action: Action);
/// Returns the current boundaries of the [`Editor`].