Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow syncing the document in edit and view panes #2148

Open
bkmeneguello opened this issue Dec 29, 2024 · 4 comments
Open

Allow syncing the document in edit and view panes #2148

bkmeneguello opened this issue Dec 29, 2024 · 4 comments
Labels
enhancement Request: New feature or improvement user interface Component: General user interface

Comments

@bkmeneguello
Copy link
Contributor

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 bkmeneguello added the enhancement Request: New feature or improvement label Dec 29, 2024
@vkbo
Copy link
Owner

vkbo commented Dec 29, 2024

For what purpose? To check formatting?

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

@bkmeneguello
Copy link
Contributor Author

bkmeneguello commented Dec 29, 2024

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.

@vkbo
Copy link
Owner

vkbo commented Dec 29, 2024

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 vkbo added the user interface Component: General user interface label Dec 29, 2024
@bkmeneguello
Copy link
Contributor Author

This would be perfect to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Request: New feature or improvement user interface Component: General user interface
Projects
None yet
Development

No branches or pull requests

2 participants