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

Scroll on new lines #11

Merged
merged 1 commit into from
Oct 17, 2020
Merged

Scroll on new lines #11

merged 1 commit into from
Oct 17, 2020

Conversation

DaniGuardiola
Copy link
Contributor

This addition will make sure that the document scrolls properly when inserting a new line. You might want to make it optional and have a setting for it. I am using this by modifying the installed extension code directly, and it works like a charm, but it's not tested properly as I haven't tried compiling the ts files.

This addition will make sure that the document scrolls properly when inserting a new line. You might want to make it optional and have a setting for it. I am using this by modifying the installed extension code directly, and it works like a charm, but it's not tested properly as I haven't tried compiling the ts files.
@mauricedb mauricedb merged commit 31bc7da into mauricedb:master Oct 17, 2020
@mauricedb
Copy link
Owner

Sweet, I like it :-)

Thanks for the PR

@DaniGuardiola
Copy link
Contributor Author

Thanks! Although I just thought of a case where it would break. If you're not on the last line (for example after a go-to) then newlines will make it scroll to the end. Should probably reveal the current line (the one where the cursor is after inserting the new line) instead of the last line.

@mauricedb
Copy link
Owner

Hi @DaniGuardiola

This change should fix that issue #12

@DaniGuardiola
Copy link
Contributor Author

Great! Thanks

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

Successfully merging this pull request may close these issues.

2 participants