novelWriter icon indicating copy to clipboard operation
novelWriter copied to clipboard

Allow syncing the document in edit and view panes

Open bkmeneguello opened this issue 11 months ago • 4 comments

When I change the document, I have to type Ctrl+R to open the same document in the View pane. I wish to have the option to keep both the editor and the view panes in sync, so when I switch to another document, it's opened at the view automatically

bkmeneguello avatar Dec 29 '24 15:12 bkmeneguello

For what purpose? To check formatting?

As pointed out before, that's not the purpose of the document viewer.

vkbo avatar Dec 29 '24 16:12 vkbo

But couldn't that be an option? I agree it shouldn't be the default behaviour, but it could help novice users get a feel for the current formatting, also could help when using string replacements.

bkmeneguello avatar Dec 29 '24 17:12 bkmeneguello

I was thinking that adding a small button in the viewer footer where the red box is could be an easy solution:

image

It could have the label/tool tip "Sync with editor", with the following functionality when enabled:

  • When opening a document in the editor, it automatically loads the same in the viewer.
  • When explicitly opening a document for viewing, it allows this to be out of sync with the editor.
  • Maybe auto-disabling the feature in the above case?
  • When the editor document is saved or auto-saved, the viewer automatically refreshes if the sync mode is active.

Does that sound reasonable?

vkbo avatar Dec 29 '24 17:12 vkbo

This would be perfect to me

bkmeneguello avatar Dec 29 '24 17:12 bkmeneguello