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

Student code view should remember the last cursor/scroll position #60

Open
allevato opened this issue Oct 12, 2013 · 0 comments
Open

Student code view should remember the last cursor/scroll position #60

allevato opened this issue Oct 12, 2013 · 0 comments

Comments

@allevato
Copy link
Member

I read this in the Pythy SIGCSE paper:

Every time a student returns to a code page they have written, it appears the same way they last left it.

Let's make this even better by having Pythy store the user's current cursor position (line and column) in AssignmentRepository and ScratchpadRepository every time it auto-saves the content. Then, when the code page is reloaded, CodeMirror should automatically jump back to that position.

We could do this for AssignmentReferenceRepository too for instructors. The only black sheep is ExampleRepository, since those are viewable by multiple users, and you'd need another relationship to store each individual user's positions. The slight inconsistency is probably worth avoiding the extra work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant