Follow a collaborator's viewport #43

Closed
opened 2026-09-21 18:03:02 +01:00 by cruelacid · 1 comment
Owner

Part of #37.

What Relay does

Not shipped. "Collaborative presence — follow-cursor, who's-online across
folders, pull-to-view" sits under Considering on their roadmap (read
21 Sep 2026), which is their least-committed tier.

What we do today

Remote cursors with always-on name labels via y-codemirror.next
(editor-bridge.ts) and an avatar stack beside the note title
(main.ts:3901 renderPresenceStack, six-seat palette in presence.ts). No
follow mode.

What changes

Awareness already carries cursor and selection, and presence is relayed at up to
20 Hz (AWARENESS_WINDOW_MS = 50). Add viewport to the awareness payload, and a
click on an avatar scrolls to and tracks that person's view.

Worth noting the existing trade in docs/sync-limitations.md: presence is
coalesced, so following will be smooth rather than frame-exact. That is the right
trade and should stay.

Risk

risk:none. Awareness is relayed, never stored.

Verification

Two real Obsidian instances in the multi-vault e2e suite; one follows, the other
scrolls.

Part of #37. ## What Relay does **Not shipped.** "Collaborative presence — follow-cursor, who's-online across folders, pull-to-view" sits under **Considering** on their roadmap (read 21 Sep 2026), which is their least-committed tier. ## What we do today Remote cursors with always-on name labels via `y-codemirror.next` (`editor-bridge.ts`) and an avatar stack beside the note title (`main.ts:3901 renderPresenceStack`, six-seat palette in `presence.ts`). No follow mode. ## What changes Awareness already carries cursor and selection, and presence is relayed at up to 20 Hz (`AWARENESS_WINDOW_MS = 50`). Add viewport to the awareness payload, and a click on an avatar scrolls to and tracks that person's view. Worth noting the existing trade in `docs/sync-limitations.md`: presence is coalesced, so following will be smooth rather than frame-exact. That is the right trade and should stay. ## Risk `risk:none`. Awareness is relayed, never stored. ## Verification Two real Obsidian instances in the multi-vault e2e suite; one follows, the other scrolls.
Author
Owner

Moved to the Vikunja board as NEC-20: https://projectron.nerchure.com/tasks/20

Moved to the Vikunja board as **NEC-20**: https://projectron.nerchure.com/tasks/20
Sign in to join this conversation.
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Nectenda/nectenda#43
No description provided.