atom-community / markdown-preview-plus

Markdown Preview + Community Features
https://atom.io/packages/markdown-preview-plus
Other
370 stars 85 forks source link

[Feature request] preview follow cursor #455

Closed biocyberman closed 4 years ago

biocyberman commented 5 years ago

I find my self scroll up and down to find the portion of preview that is corresponding to the line/paragraph I am writing. It will be really nice to have the preview follow the cursor.

lierdakil commented 5 years ago

Try setting the first two options in the 'Preview position synchronization behaviour' section of the MPP settings? Preview position synchronization behaviour settings section with three toggle options visible: 1. Sync preview position when text in editor changes; 2. Sync preview position when text editor is scrolled; 3. Sync editor position when preview is scrolled. The first two are turned on, the third one is turned off.

Bear in mind that synchronization works well only with markdown-it renderer, with pandoc it's a bit of a mixed bag, sometimes it works well enough, and sometimes it breaks spectacularly. And by "breaks" I mean "seemingly randomly scrolls to an absolutely unrelated part of the document".

JackElsey commented 5 years ago

I came here to ask to this feature for use with Atom on Ubuntu. I realize now that I was using an old version of this package without those settings because apt-get was giving me an old version of Atom that was incompatible with the newest version of this package.

I reinstalled Atom via the .deb file on their website, and that allowed me to install the latest version of this package with this feature.