ottypes / json0

Version 0 of the JSON OT type
447 stars 64 forks source link

[WIP] transformCursor implementation #22

Closed lord closed 6 years ago

lord commented 7 years ago

Still could use some cleanup, but since there's been no commits since 2015, thought I'd post this first to gauge interest/probability of of a merge. It also doesn't support subtype ops (although sd and si are supported), if this is wanted I'd implement it by forwarding the cursor transform on to the subtype.

This implements transformCursor. Cursor positions have the same format as a op path, so for instance if the cursor was halfway through 'meow' in {'key': [0,1,"meow"]}, the cursor would be ['key', 2, 2].

lord commented 6 years ago

Closing due to inactivity, glad to reopen and discuss merging if there's interest.