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

Proceed after a single character without having to press enter #14

Closed
KasparEtter opened this issue Mar 12, 2020 · 1 comment
Closed

Comments

@KasparEtter
Copy link
Contributor

This is really a detail but using this tool would be faster (and thus more pleasurable) if the prompts would continue after entering a single character without having to press enter. Both for:

Would you like to proceed? (y/n)

and

[…] already exists. What would you like to do?
1) Overwrite the file
2) Keep both files
3) Skip
Please input a number:

I'm not sure whether this is easily possible with the package that you are using. In Bash, I like to use the following:

read -p "Would you like to proceed? (y/n) " -n 1 -r
echo
if [ $REPLY = 'y' ]
then
    echo "Proceed."
else
    echo "Abort."
fi
jhotmann added a commit that referenced this issue May 8, 2020
@jhotmann
Copy link
Owner

jhotmann commented May 8, 2020

This will be included in 7.0.0 Beta 2

@jhotmann jhotmann closed this as completed May 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants