diff --git a/lib-nested-core/src/edit_tree/cursor.rs b/lib-nested-core/src/edit_tree/cursor.rs index 9caa659..24e77d2 100644 --- a/lib-nested-core/src/edit_tree/cursor.rs +++ b/lib-nested-core/src/edit_tree/cursor.rs @@ -4,6 +4,14 @@ use { //<<<<>>>><<>><><<>><<<*>>><<>><><<>><<<<>>>> +enum GravityMode { + // tries to maintain a set distance from bottom + Gravity(usize), + + // keeps equal distance from root + Floating +} + #[derive(Clone, Eq, PartialEq, Debug)] pub struct TreeCursor { pub leaf_mode: ListCursorMode, diff --git a/lib-nested-core/src/editors/list/editor.rs b/lib-nested-core/src/editors/list/editor.rs index 6773891..80b73d0 100644 --- a/lib-nested-core/src/editors/list/editor.rs +++ b/lib-nested-core/src/editors/list/editor.rs @@ -17,14 +17,13 @@ use { pub struct ListEditor { pub cursor: SingletonBuffer, - - // todo: (?) remove RwLock<..> around NestedNode ?? pub data: VecBuffer< Arc> >, pub spillbuf: Arc>>>>, pub(super) addr_port: OuterViewPort>, pub(super) mode_port: OuterViewPort>, +// pub(super) grav_port: OuterViewPort>, depth: OuterViewPort>,