aboutsummaryrefslogtreecommitdiff
path: root/helix-core/src/state.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2020-09-09 06:48:25 +0000
committerBlaž Hrastnik2020-09-09 06:48:25 +0000
commit25b3f98e3d200ae7f0f08b10be50552359502494 (patch)
tree65954db941916fe6d892ef9201d0c1a43351aa48 /helix-core/src/state.rs
parent7eac12a4bb02aaa96f63de612077a12df1d5fedc (diff)
draft: tree-sitter highlighting
Diffstat (limited to 'helix-core/src/state.rs')
-rw-r--r--helix-core/src/state.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/helix-core/src/state.rs b/helix-core/src/state.rs
index 67f23009..5f941fb5 100644
--- a/helix-core/src/state.rs
+++ b/helix-core/src/state.rs
@@ -81,6 +81,17 @@ impl State {
// foldable
// changeFilter/transactionFilter
+ // TODO: move that accepts a boundary matcher fn/list, we keep incrementing until we hit
+ // a boundary
+
+ // TODO: edits, does each keypress trigger a full command? I guess it's adding to the same
+ // transaction
+ // There should be three pieces of the state: current transaction, the original doc, "preview"
+ // of the new state.
+ // 1. apply the newly generated keypress as a transaction
+ // 2. compose onto a ongoing transaction
+ // 3. on insert mode leave, that transaction gets stored into undo history
+
pub fn move_pos(
&self,
pos: usize,