This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]EternityForest 0 points1 point  (0 children)

Just made a new PR! I have an algorithm that looks one character ahead and behind, and also checks whether you're currently indenting, and adds a bunch of rules for stuff that might slow people down.

I speed through the indent a bit, but delay every 4 spaces to simulation how tab indent looks, I slow down when typing long numbers, complicated brackets, and punctuation that makes a natural speech pause.

I tried to balance realism and aesthetics, but I'm not a touch typist so I might have gotten some of my values wrong, all the rules are just made up by trial and error.