Skip to content

Preview not jumping when clicking references #120

@PuddingisPOG

Description

@PuddingisPOG

Describe the bug
If you have any form of a reference in your document, either by the outline function referencing the different headers or by using a tag and then referencing it with @ later, the references do not work in the preview.

To Reproduce
Steps to reproduce the behavior:

  1. Run the TypstPreview command on a typst file.
  2. Scroll down to the outline page in your preview.
  3. Click on any of the headers to jump to that position.
  4. Clicking will end up doing nothing and it will not scroll down to where that header is.

Expected behavior
It is expected that the preview scrolls down to the header clicked in the outline.

Screenshots
What should happen (This happens in VS code):

This is me about to click the header:
Image

This is how it look after I have clicked the header:

Image

When I use this preview for neovim however, it stays on the first image without jumping to the correct position in the second image.

Desktop (please complete the following information):

  • OS: Ubuntu 24.04.3
  • Commit / Version: v1.4.1

Additional context
This problem showed up maybe a month or 2 ago, possibled in the latest version although I haven't verified this.

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