+
Skip to content

added 'q' to quit prompt #5

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

Merged
merged 1 commit into from
May 14, 2015
Merged

Conversation

zeachco
Copy link
Collaborator

@zeachco zeachco commented May 13, 2015

maybe having "q" to exit feel more intuitive being in git prompt?

@@ -20,10 +20,10 @@ if (opts.indexOf('-h') > -1) {
gitBc.on('success', log.success);

// Exits program execution on ESC keypress
process.stdin.on('keypress', function (ch, key) {
if (key && key.name === 'escape') {
process.stdin.on('keypress', function(ch, key) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh, this line got changed for no reason at all 😞 plus it breaks my standard of always having a space between function declaration and parenthesis :)

other than that LGTM 👍

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, my bad for the space, also I was looking for autocomplete and thought if was more readable if we added multiples functions like autocomplete searches after to just separate on 2 lines the key verification but as this commit is only to add the Q key, i removed them 👍

@zeachco zeachco force-pushed the autocomplete branch 2 times, most recently from 7e37122 to 67f2d46 Compare May 14, 2015 15:46
process.exit();
}
});
}

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now my EOL is gone! 😨 LOL

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EOL back

ruyadorno added a commit that referenced this pull request May 14, 2015
@ruyadorno ruyadorno merged commit c1bb79f into ruyadorno:master May 14, 2015
@ruyadorno
Copy link
Owner

🎊 many thanks @zeachco 😃

@paoloantinori paoloantinori mentioned this pull request Jul 16, 2015
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

Successfully merging this pull request may close these issues.

2 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载