jamiemcg / Remarkable

Remarkable - The Markdown Editor for Linux http://remarkableapp.github.io
MIT License
1.96k stars 225 forks source link

Feature Request: Live Preview scrolling issue #404

Open andreas83 opened 1 year ago

andreas83 commented 1 year ago

Would be nice if the Live Preview stays in position while editing the markdown file. Right now the preview always scrolls to first page, which is kinda annoying if you write a long text with multiple pages.

xyz-worx commented 1 year ago

Up to the tagged version 1.87 synchronized scrolling between editor and preview was given. After cloning this project and creating some intermediate local branches between 1.87 and 'master' it is obvious from my point of view that changing to Webkit2 did the issue.

If you checkout the commit from 2018-01-06, 00:21 synchronized preview is available. This also includes the 'Search & Replace' feature as well as the possibility to use relative paths for images to be rendered correctly with PDF-export.

Jirido commented 12 months ago

I also suffer.

Up to the tagged version 1.87 synchronized scrolling between editor and preview was given. After cloning this project and creating some intermediate local branches between 1.87 and 'master' it is obvious from my point of view that changing to Webkit2 did the issue.

If you checkout the commit from 2018-01-06, 00:21 synchronized preview is available. This also includes the 'Search & Replace' feature as well as the possibility to use relative paths for images to be rendered correctly with PDF-export.

I think andreas83 did not even have the ambition for synchronized scrolling, but just the preview page to stay in place as one put it, instead of jumping back to the beginning every time one edit. How is one meant to be able to use live preview beyond the first page?

Else, the program is solid. I would like to be able to darken the edit area also. Night mode does not work for me.

xyz-worx commented 11 months ago

Hi Andreas, I don't want to hijack you thread, but I think it's worth to answer Jirido's post.

Jirido, I think, Andreas (and I) do have the ambition for synchronized scrolling - because it did work up to version 1.87, before the switch to 'webkit2'. Think about a text of, let's say, 500 lines. Up to that time it was possible to edit line 10 - and you could see the rendered text in the preview pane immediately. Then jump to line 400 in the text pane - the rendered text of line 400 could be seen in the preview. Even without any editing by only moving the scroll bar of the text pane --> the rendered text in the preview was in synch.

@Andreas: Somewhere in the issue discussion I found a attempt to fix this issue posted by lowlevel-1989. From my point of view, it is not a real fix to get the known behavior before. He adds a small JavaScript code at the end of the text - this should align the rendered text in the preview. This hack was also posted somewhere in one of the threads. As I said, it is not a real fix. If you edit your text somewhere you have to 'search' and scroll to the right location in the preview. If this is done, further editing keeps the rendered text in synch without jumping to the top line.

Nevertheless, it is not the same behavior as before.

Jirido commented 11 months ago

Thank you. I look forward to it working.