I thought I was going crazy while trying to debug something weird in leoInteg.... so I tested what I was doing directly in Leo and it turns out it was Leo who was contracting nodes in the outline when I was selecting nodes near the top and using the usual ctrl+i command to insert a node.
To Edward, or Vitalije, ... or anyone really :)(trying to debug yet another behavior in leoInteg, only to find out that Leo does it in the first place, so my code was correct all along!!)
More Details: I'm currently testing keeping the (id) identity of nodes with a murmurhash of their 'archived positions' json string representation. Also, in vscode, the collapsed state is preserved by the said 'id'... Thats why i'm looking into clone expand/collapse exact behavior matching.
Expect a merge into dev, ...and maybe even into master soon :)
To Edward, or Vitalije, ... or anyone really :)(trying to debug yet another behavior in leoInteg, only to find out that Leo does it in the first place, so my code was correct all along!!)
On Thursday, August 13, 2020 at 7:21:38 PM UTC+2, Félix wrote:To Edward, or Vitalije, ... or anyone really :)(trying to debug yet another behavior in leoInteg, only to find out that Leo does it in the first place, so my code was correct all along!!)I am sorry for being late, but the behavior that you see is just a consequence of the position instability. When you insert a node in to the tree (or delete one), positions of all following siblings and their subtrees become invalid.
I thought I was going crazy while trying to debug something weird in leoInteg.... so I tested what I was doing directly in Leo and it turns out it was Leo who was contracting nodes in the outline when I was selecting nodes near the top and using the usual ctrl+i command to insert a node.