Synchronize scrolling between editor preview

AI-generated summary

Users discuss issues with syncing scrolling between the editor and preview in a markdown editor, particularly when dealing with formatted content like code blocks and links. PackElend reports that the preview often fails to reflect the current editor position, requesting better synchronization. codinghorror explains that syncing is a best-effort feature and not guaranteed to be perfect. PackElend suggests that double-clicking text in the preview should focus the editor on the same text, but sam confirms this is not implemented and not on the roadmap. codinghorror notes that enterprise customers can influence prioritization, but PackElend clarifies their non-profit status limits access to such options. kenjdarhan adds that this issue disrupts workflow when editing long documents, as the preview shows unrelated sections. sam explains the feature is complex and previously attempted with too many complications.

Scrolling not sync between Editor and Preview not working well when using lot of formated text like code, links etc.

  1. Write a lot of text mixed in with code block samples, links etc now and then
  2. After a while, you will find that where you are typing in the editor is not in view in the preview.

I have been experiencing cases where preview does not sync its scroll position to where the editor view is. It seems to act up when I use several formatted text, links mixed with regular text and markdown.

I expect the preview to always show where you are typing in the editor.

FEATURE REQUEST: editor shall sync with preview (on demand) as the reading of the preview is more much convenient.

1 Like

Syncing is a best effort kind of thing, it is never going to be exactly perfect.

1 Like

fair enough but it could help if I e.g. double click on the text on the preview window, editor is focused on the same text.

2 Likes

@codinghorror could

implemented?

Not implemented yet, not on a specific roadmap

1 Like

any chance to get it on a roadmap?

Sure, just sign up for an enterprise hosting plan at https://discourse.org/buy – we regularly prioritize enterprise customer work.

1 Like

we are non-profit, so enterprise hosting option is properly far beyond our current budget.
We are glad that at least we were granted the same chat app under non-profit licences model you are using.

What about nextcloud, home-assistant, fairphone, are any of those enterprise customer?
I publish complex post over there frequently, so I could make a suggestion over there.

If I want to edit and modify a long piece of content, I have to scroll up and down in the edit box, and I want that the preview area show the content exactly where I am at in the edit box, but the preview area just shows content somewhere else.

Like, when my aritle have several sections and I am at section 4.2 in the edit box, the preview area would show somthing like section 3.1.

Its a very complicated feature, we tried once in the past but it came with too many caveats.

2 Likes