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

Please add timing options to automatic typing #14

Open
gbritton1 opened this issue Dec 23, 2022 · 7 comments
Open

Please add timing options to automatic typing #14

gbritton1 opened this issue Dec 23, 2022 · 7 comments

Comments

@gbritton1
Copy link

I've been wanting this extension for years! Thank yo sooooooooooooooo much!!

A little feature request:

Love to see a small feature to set the typing speed and also introduce some randomness to the typing speed to make it look more like a person at a keyboard is typing live. e.g. even as I write this note, my typing speed (I'm no speed demon!) varies slightly depending on my keyboard reach, mistakes etc.

Proposal:

  1. overall speed (20 wpm, 40 wpm, 60 wpm, 80, wpm ? Just suggestions from Typing Speeds )
  2. randomness -- so if I select 30 wpm it varies between 25 wpm and 35 wpm using random intervals in that range
  3. Typing mistakes? e.g. As I'm typing here. I make some mistakes, backspace over then then fix them. the auto typing would look even more human with the odd mistake thrown in. You could even have a parameter that sets a mistake rate percentage or something like that. (see Typing Mistakes)
@mauricedb
Copy link
Owner

Hi @gbritton1,

Excellent suggestions.

  1. The typing speed is something you can already do. Both the TypeText and the TypeTextFromFile instructions support a delay where you can specify the time between characters typed. If not set it is taken from the VS Code configuration. And if that is not set it defaults to 100. These are set in ms delay between each character typed.
  2. Making the typing speed a bit more random with a configurable amount sounds like a great addition and will make it feel more natural.
  3. Typing mistakes is another interesting addition. Would you want to introduce there manually and add one or more \b characters to delete mistakes or you you prefer to have these automatically and thus randomly injected?

@gbritton1
Copy link
Author

gbritton1 commented Dec 26, 2022 via email

@mauricedb
Copy link
Owner

Hi @gbritton1,

automatic, random and believable

That is a hard combination. I guess hitting a key twice by accident is easy to do automatic and believable. As would be flipping two characters and fixing that typo. But hitting the adjacent key is dependent on the keyboard layout making it harder.

BTW I released a new version earlier today with a randomness setting to vary the typing speed. Not available on a per instruction level yet, only as a setting. Please take a look and let me know if that works for you. Currently it's a ms value as well. I was considering making it a percentage.

@olivierlacan
Copy link

@mauricedb Excellent addition and great work on the extension in general.

I've found that using a randomness very close or equal to the delay makes for surprisingly natural typing. The screencast below have delay and randomness set to 80.

Presentation.Buddy.randomness.demo.mov

@mauricedb
Copy link
Owner

Sweet, looks really nice. When I have some time I will add the randomness to the TypeText and TypeTextFromFile instructions so you can vary it per instruction along with the delay.

@olivierlacan
Copy link

olivierlacan commented Jan 8, 2023

That’s a great idea, I actually tried that at first and since it didn’t work, I ended up using the global settings instead.

@mauricedb
Copy link
Owner

Adding a JSON schema to help with that and autocompletion in general is another thing I should do :-)

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

No branches or pull requests

3 participants