You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 27, 2023. It is now read-only.
To really use Automerge for Text editor one needs to keep cursor position updated while remote changes are arriving.
One way of doing it is to expose 2 functions to translate from cursor Int position to ObjectID and ObjectID to a position.
Such 2 APIs will also allow to index chunks of the live documents.
The other way is to manually process remote changes and apply them to the cursor position, but it's duplicating the rust library code.
I might have a bad day but I can't figure out how to do the option 1 with the current library version.
The text was updated successfully, but these errors were encountered:
An API to translate between a cursor position as character ID and an index would be a good thing to add. It would first need to be added to the Rust core before it could be exposed to Swift. Could you open an issue for this on the automerge/automerge-rs repo please?
To really use Automerge for Text editor one needs to keep cursor position updated while remote changes are arriving.
One way of doing it is to expose 2 functions to translate from cursor Int position to ObjectID and ObjectID to a position.
Such 2 APIs will also allow to index chunks of the live documents.
The other way is to manually process remote changes and apply them to the cursor position, but it's duplicating the rust library code.
I might have a bad day but I can't figure out how to do the option 1 with the current library version.
The text was updated successfully, but these errors were encountered: