Myriad-Dreamin / tinymist

Tinymist [ˈtaɪni mɪst] is an integrated language service for Typst [taɪpst].
https://myriad-dreamin.github.io/tinymist
Apache License 2.0
838 stars 35 forks source link

confusing cursor syncing with cursor on heading #626

Open max397574 opened 1 month ago

max397574 commented 1 month ago

Describe the bug I'm using typst-preview.nvim with tinymist under the hood. When I move the cursor over a heading the preview scrolls to the ToC which causes a lot of not needed movement.

Package/Software version:

tinymist extension version: v0.11.0. Get it by tinymist --version in terminal.

Build Timestamp:     2024-09-27T23:38:25.000000000Z
Build Git Describe:  VERGEN_IDEMPOTENT_OUTPUT
Commit SHA:          VERGEN_IDEMPOTENT_OUTPUT
Commit Date:         None
Commit Branch:       None
Cargo Target Triple: aarch64-apple-darwin
Typst Version:       0.11.1

Also see https://github.com/Myriad-Dreamin/tinymist

Myriad-Dreamin commented 1 month ago

This is known to be a upstream feature. The heading element will occur in both ToC and main body, and we cannot distinguish them in compiled typst::model::Document.

max397574 commented 1 month ago

is there already an upstream issue for this which I can follow?

Myriad-Dreamin commented 1 month ago

is there already an upstream issue for this which I can follow?

I don't remember but I saw some related discussion on discord.