Add cursor moving #19

Merged
schmelczer merged 23 commits from asch/cursors into main 2025-04-02 22:06:38 +01:00
schmelczer commented 2025-04-01 22:49:31 +01:00 (Migrated from github.com)

Move local cursor position on text updates in case the document is open in Obsidian.

This could've been done with a heuristic, however, this is the semantically correct implementation that also lays the foundation for future work on showing collaborators' cursors.

  • Add reconcile_with_cursors as a top-level reconcile function
  • Refactor MergeContext
  • Add easier-to-use test suite for reconcile which reads yaml definitions from disk
  • Add .editorconfig
  • Add utilities for converting between cursor positions in TS
  • Update atomicUpdateText to take and return cursors
  • Move the Obsidian cursor on updates
Move local cursor position on text updates in case the document is open in Obsidian. This could've been done with a heuristic, however, this is the semantically correct implementation that also lays the foundation for future work on showing collaborators' cursors. - Add `reconcile_with_cursors` as a top-level reconcile function - Refactor `MergeContext` - Add easier-to-use test suite for reconcile which reads yaml definitions from disk - Add `.editorconfig` - Add utilities for converting between cursor positions in TS - Update `atomicUpdateText` to take and return cursors - Move the Obsidian cursor on updates
schmelczer (Migrated from github.com) reviewed 2025-04-02 22:06:09 +01:00
schmelczer (Migrated from github.com) commented 2025-04-02 22:06:09 +01:00

Drive-by sync fix

Drive-by sync fix
Sign in to join this conversation.
No description provided.