Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cursor enhancement #72

Open
heckj opened this issue Aug 15, 2023 · 0 comments
Open

Cursor enhancement #72

heckj opened this issue Aug 15, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@heckj
Copy link
Collaborator

heckj commented Aug 15, 2023

Following up from initial cursor support in #69:

  • concept of a a default cursor for tracking AutomergeText
  • worth noting that UITextField thinks in terms of NSRange. Potentially track this with two cursors - start and end - to allow range to expand/shrink with applied updates.
  • look at spliceText (in the Rust layer/swift interface) and consider allowing a cursor as an argument in addition to an index, for convenience/developer ergonomics.
  • allow a swift-oriented initialized for a cursor on .Text that starts with a String.Index to set the position of the cursor (translate String.Index to UTF8-view position and retrieve cursor reference from that)
@heckj heckj added the enhancement New feature or request label Aug 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant