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

Autocorrect command typos #150

Closed
arcticicestudio opened this issue Oct 6, 2018 · 0 comments
Closed

Autocorrect command typos #150

arcticicestudio opened this issue Oct 6, 2018 · 0 comments
Labels
Hacktoberfest This repository participates in the Hacktoberfest scope-ux snowblock-git type-feature
Milestone

Comments

@arcticicestudio
Copy link
Owner

The help.autocorrect configuration allows to run auto-corrected commands with a specified delay time (seconds) after the info message has been shown. This should be added and set to a value of 10 (1 second).

@arcticicestudio arcticicestudio added this to the 0.1.0 milestone Oct 6, 2018
@arcticicestudio arcticicestudio self-assigned this Oct 6, 2018
arcticicestudio added a commit that referenced this issue Oct 6, 2018
The `help.autocorrect` (1) configuration allows to run auto-corrected
commands with a specified delay time (seconds)  after the info message
has been shown. This should be added and set to a value of `10` (1
second).

References:

  (1) https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration#_code_help_autocorrect_code

GH-150
@arcticicestudio arcticicestudio added the Hacktoberfest This repository participates in the Hacktoberfest label Oct 6, 2018
arcticicestudio added a commit that referenced this issue Oct 6, 2018
…ct-command-typos

Autocorrect command typos
@arcticicestudio arcticicestudio removed their assignment Oct 6, 2018
arcticicestudio added a commit that referenced this issue Oct 4, 2020
In GH-150 [1] the `help.autocorrect` [1] configuration was added to run
auto-corrected commands with a specified delay time (seconds) after a
info message has been shown. After long usage this turns out to be more
disruptive than useful because it might auto-correct to the wrong
command, for example when there are many aliases with similar names but
different purposes. In one situation I prevented my current non-commited
work to be lost because Git was about to correct my command typo to my
`wipe` alias which resets all changes to the last commit
(`git reset --hard`).

Also the time to wait before a command get actually corrected is
wasted, because I could have entered the correct command multiple times
again.

To prevent these situations the features has been disabled again.

[1]: #150
[2]: https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration#_code_help_autocorrect_code

GH-286
arcticicestudio added a commit that referenced this issue Oct 4, 2020
In GH-150 [1] the `help.autocorrect` [1] configuration was added to run
auto-corrected commands with a specified delay time (seconds) after a
info message has been shown. After long usage this turns out to be more
disruptive than useful because it might auto-correct to the wrong
command, for example when there are many aliases with similar names but
different purposes. In one situation I prevented my current non-commited
work to be lost because Git was about to correct my command typo to my
`wipe` alias which resets all changes to the last commit
(`git reset --hard`).

Also the time to wait before a command get actually corrected is
wasted, because I could have entered the correct command multiple times
again.

To prevent these situations the features has been disabled again.

[1]: #150
[2]: https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration#_code_help_autocorrect_code

Resolves GH-286
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Hacktoberfest This repository participates in the Hacktoberfest scope-ux snowblock-git type-feature
Projects
None yet
Development

No branches or pull requests

1 participant