Enter-tainer / typst-preview

[DEPRECATED] Use tinymist instead
https://Enter-tainer.github.io/typst-preview/
MIT License
444 stars 21 forks source link

Improve cursor indicator #222

Open psads-git opened 10 months ago

psads-git commented 10 months ago

I think it would be very useful to have a visible marker that, at each moment, indicated, on the pdf viewer, where the cursor on the typ file is. Thanks!

Enter-tainer commented 10 months ago

there is one. you may browse the config to enable it.

Enter-tainer commented 10 months ago

we want to further improve it, so it's noy enabled ny default

psads-git commented 10 months ago

Thanks, @Enter-tainer! My fault: I had not seen that before.

Indeed, the cursor still needs improvement. In particular, the level of transparency should be higher, so that the text under the cursor is made more visible.

Enter-tainer commented 10 months ago

the level of transparency should be higher

Agree. Would you like open a pr and fix it?

psads-git commented 10 months ago

the level of transparency should be higher

Agree. Would you like open a pr and fix it?

Unfortunately, I do not know rust to accomplish that!

psads-git commented 10 months ago

I guess you have meanwhile tried to improve the cursor, but now, after the latest update, it does not show up.

davidleejy commented 9 months ago

Perhaps for quick remedy, it'd be worthwhile considering exposing values responsible for how the cursor indicator looks like in the settings: blink rate, color, opacity, shape.

I think it would be very useful to have a visible marker that, at each moment, indicated, on the pdf viewer, where the cursor on the typ file is. Thanks!

Can't help but feel that this could possibly be the seeds of a "killer" feature because, when coupled with another (existing) feature that lets users jump to the part of the typ file by clicking in the pdf preview, users will be able to edit the pdf document directly in the pdf preview resulting in an arguably friendlier user experience more similar to popular word editors like MS Word, and LibreOffice. 🤔💭