Skip to content

[BUG] Cursor follow randomly breaks.. #87

@NightSling

Description

@NightSling

Before you start


Describe the bug
Cursors are supposed to sync when clicked in the browser, but the behavior is inconsistent — it only occurs sporadically and does not trigger on every click. Additionally, when moving the cursor in the editor, the browser preview does not update to reflect the current position, which feels like a missing feature or potentially a bug.


To Reproduce
Steps to reproduce the behavior:

  1. Open a .typ file in Neovim with typst-preview.nvim enabled.
  2. Launch the preview in the browser.
  3. Click at various locations in the preview.
  4. Observe that cursor sync with the editor is inconsistent.
  5. Move the cursor within the editor.
  6. Notice that the browser does not follow the cursor location.

Expected behavior
Clicking in the browser should consistently sync the cursor location back to Neovim. Similarly, when moving the cursor within Neovim, the browser preview should scroll or update accordingly to maintain synchronization.


Screenshots/Video
Video: https://files.catbox.moe/o2zt7n.mp4
Debug Logs: https://0x0.st/8OJK.txt


Desktop (please complete the following information):

  • OS: Fedora Linux 6.13.10-200.fc41.x86_64
  • Plugin Information:

Additional context
Log and video attachments provided. This behavior was observed using the tinymist backend. While this issue does not exist with the VS Code plugin for tinymist, it may be specific to the Neovim integration.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions