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

[Feature Request] Save scroll position in editors #768

Open
dreamflasher opened this issue Nov 14, 2019 · 3 comments
Open

[Feature Request] Save scroll position in editors #768

dreamflasher opened this issue Nov 14, 2019 · 3 comments

Comments

@dreamflasher
Copy link

@dreamflasher dreamflasher commented Nov 14, 2019

It would be great if the current scroll position would be saved and on reopening a note, be restored.

@mobitar mobitar transferred this issue from standardnotes/desktop Nov 15, 2019
@bschlagel

This comment has been minimized.

Copy link

@bschlagel bschlagel commented Nov 18, 2019

Agree, this would be super useful. Currently very hard to go between multiple (even just two) long-ish notes when you have to re-find your previous position in the note every time.

Discussed here as well: #276

Sounds like it might be a lot of work to implement for all editors. But even if it worked only for the plaintext editor, that could be a good start!

@dreamflasher

This comment has been minimized.

Copy link
Author

@dreamflasher dreamflasher commented Nov 18, 2019

I agree it doesn't need to work for all editors at once. But it actually looks relatively easy to implement to me. Getting the scroll position and setting the scroll position is trivial with JS. I'm pretty sure one has access to the DOM in electron? Then it just needs to be saved, and the dataformat has metadata right?

@dreamflasher

This comment has been minimized.

Copy link
Author

@dreamflasher dreamflasher commented Nov 18, 2019

@mobitar can you mark this as duplicate of #276?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.