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

Issue #441: Document Viewer History Navigation #442

Merged
merged 8 commits into from Sep 8, 2020
Merged

Conversation

vkbo
Copy link
Owner

@vkbo vkbo commented Sep 8, 2020

This PR adds a 20 page history to the document viewer where the user can navigate backwards and forwards in the last opened documents. The forward history is reset if the user opens a document explicitly instead of navigating back and forth. Same as a browser does, and the undo/redo stack.

The user can interact with the navigation in the following ways:

  • Backward and forward navigation in the View menu.
  • Keyboard shortcuts Alt+Left and Alt+Right.
  • Navigation buttons in the top, left corner of the document view window.
  • Backward and forward nav buttons on the mouse, if available.

If novelWriter is started with the --verbose flag, the entire history is dumped to the terminal window each time a navigation occurs. This can be used for debugging, although it is definitely verbose and may be removed at a later point.

@vkbo vkbo merged commit ab1b3aa into main Sep 8, 2020
@vkbo vkbo deleted the issue441_back-nav branch September 8, 2020 20:50
@vkbo vkbo linked an issue Nov 21, 2020 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Document viewer back navigation
1 participant