lsegal / atom-rst-preview

Open a rendered version of the ReStructuredText in the current editor with `ctrl-shift-r`.
Other
22 stars 80 forks source link

Live Preview doesn't fit to the code #32

Open buhtz opened 9 years ago

buhtz commented 9 years ago

The scroll state of the Live Preview doesn't fit to the current selected code line. When I add new code, the Live Preview re-rendering all stuff and jump back to the top. This makes it unpossible to work with it efficient.

This happen in vertical and horizontal pane split.

Using Atom 1.0.0 on Kubuntu 14.04.2, with pandoc 1.12.2.1 (Compiled with texmath 0.6.5.2, highlighting-kate 0.5.5.1).

lextm commented 8 years ago

The preview mechanism does not place any extra pivots into the generated HTML page to assist sync scrolling, and also Atom API might not expose the scroll bar position (I don't know yet). So I personally don't think this issue can be resolved.

Note that the reStructuredText extension for Visual Studio Code also experiences such an issue.