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

Add pages (1,2,3) and focus mode #34

Merged
merged 3 commits into from
Dec 11, 2019
Merged

Add pages (1,2,3) and focus mode #34

merged 3 commits into from
Dec 11, 2019

Conversation

penge
Copy link
Owner

@penge penge commented Dec 11, 2019

Solution to #27 and #28

Changes

  • Add pages (1,2,3)
  • Add focus mode
  • Use trailing edge to save the notes (before leading)
  • Use chrome.runtime.getBackgroundPage

Pages

To change the page, you have 2 options:

  1. Click the page number in the bottom
  2. Use keyboard shortcuts

On Windows, Linux, and Chrome OS:

  • Ctrl+Shift+1
  • Ctrl+Shift+2
  • Ctrl+Shift+3

On Mac:

  • Option+1
  • Option+2
  • Option+3

Focus mode

There is also focus mode added. To hide (toggle) the controls via a keyboard shortcut and to focus on the content.

On Windows, Linux, and Chrome OS:

  • Ctrl+Shift+F

On Mac:

  • Option+F

Screenshots

page-1

page-2

page-3

@penge penge added this to the 2.0 milestone Dec 11, 2019
@penge penge mentioned this pull request Dec 11, 2019
- Change "value" string to "notes" array, to store pages 1,2,3
- Add commands to jump to pages 1,2,3
- Update beforeunload to do a bulk save (all at once)
Use chrome.runtime.getBackgroundPage instead of
chrome.extension.getBackgroundPage to ensure
background page is loaded.

Debounce saveNotes on trailing (before leading).
@penge
Copy link
Owner Author

penge commented Dec 11, 2019

Nice!

@penge penge merged commit 3a1a09f into master Dec 11, 2019
@penge penge deleted the pages branch December 19, 2019 05:02
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.

1 participant