From 25b3f98e3d200ae7f0f08b10be50552359502494 Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Wed, 9 Sep 2020 15:48:25 +0900 Subject: draft: tree-sitter highlighting --- helix-core/src/state.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'helix-core/src') 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, -- cgit v1.2.3-70-g09d2