tofuuudon/typewriter-auto-scroll

Option to only auto-scroll upward

Opened this issue · 1 comments

I find the primary usefulness of this plugin to be keeping the currently editing line away from the bottom, such as when typing notes or other long typing sessions where the benefit here is to not have to move my hands away from keyboard to operate a mouse.

But let's say I realize there is a typo 20-40 lines up above.

I click to move the cursor up toward the top of the screen to edit that word, and all of a sudden, the contents scroll down to put that line I was editing in the center.

Problem: now the bottom-most line I was editing has scrolled down, out of view beneath the bottom of the editor.
This is annoying. As I will now need to go back to the mouse to scroll down again.

It would be cool if the auto-scrolling would optionally only scroll upwards, so seeking the cursor upwards in the document would not cause any auto scrolling.

In this case, only when the cursor reached the lower threshold would it auto scroll.

Hi @wrgrant, thanks for opening this issue and sounds like a neat feature. I'll take a look into this and keep you posted 👍🏽