Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Add a way to have variable typing speed #574

Closed
wizardlink opened this issue Jan 17, 2025 · 5 comments
Closed

Add a way to have variable typing speed #574

wizardlink opened this issue Jan 17, 2025 · 5 comments
Labels
enhancement New feature or request

Comments

@wizardlink
Copy link

Is your feature request related to a problem? Please describe.
I'd like a way of having variable typing speed, a range for the interval between keystrokes, to attempt to make it feel more human.

Describe the solution you'd like
I want to be able to set a variable, i.e. TypingSpeedVaried [250ms, 350ms] and have the Type actions pick a number in that range when waiting before the next input.

Describe alternatives you've considered
You can Sleep before every keystroke, but that is a very tedious process.

Thank you for the amazing tool you've given us by the way!

@wizardlink wizardlink added the enhancement New feature or request label Jan 17, 2025
@J-C-B
Copy link

J-C-B commented Jan 21, 2025

Hi, if you scroll to the bottom of the readme.....

https://github.com/charmbracelet/vhs?tab=readme-ov-file#set-typing-speed

Type something really slowly!
`Type@500ms "Slow down there, partner."`

Also....

Set Typing Speed

Set TypingSpeed 500ms # 500ms
Set TypingSpeed 1s    # 1s

https://github.com/charmbracelet/vhs?tab=readme-ov-file#type

@wizardlink
Copy link
Author

I'm not looking to set a static typing speed for a Type call. What I want here is a way for VHS to change its typing speed for every character it types, within a range.

@prithvijj
Copy link

prithvijj commented Feb 5, 2025

Ehh I took a first stab at it in #580 ,
Feel free to check it out, if that helps with what you had in mind!

@wizardlink
Copy link
Author

Tested it, awesome work! Thanks for the contribution, can't wait for it to be merged.

@meowgorithm
Copy link
Member

Hey everyone! This is actually _great one, however I'm going to convert it into a discussion (for further discussion) until we've decided to integrate it. In general, we're aiming to be as thoughtful as possible about introducing VHS features right now given our internal capacity.

If we do decide to go ahead with this we'll convert it back to an issue.

@charmbracelet charmbracelet locked and limited conversation to collaborators Feb 6, 2025
@meowgorithm meowgorithm converted this issue into discussion #583 Feb 6, 2025

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants