tinymist/tools
odilf bb5d3f476f
feat: scroll preview with hjkl (#2111)
Closes #2107 

Sorry for not getting confirmation on the issue first, but I had some
free time and thought it would be easy to implement and, indeed, it is
just a few lines of code. I'll attach a video of how it looks.


https://github.com/user-attachments/assets/60e6f7ef-cdff-4f85-a1e8-385058f87966

For the small nudges I think the instant jump is better, even though it
looks kind of janky. The problem with the smooth scroll is that you
can't press it repeatedly and I think that you use `jk` for small
adjustments where it's clear what is being scrolled. However, for the
big hl jumps I think the smooth scroll is better to not disorient you.

Happy to change anything, of course :)

---------

Co-authored-by: Myriad-Dreamin <camiyoru@gmail.com>
2025-11-02 21:31:35 +08:00
..
editor-tools feat: generate resource symbol svg in server and improve viewBox (#2109) 2025-09-10 19:17:06 +08:00
typst-dom feat: replace window global with windowElem in preview web frontend (#2145) 2025-11-02 17:34:20 +08:00
typst-preview-frontend feat: scroll preview with hjkl (#2111) 2025-11-02 21:31:35 +08:00