Questions tagged [autocorrection]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
18 views

Auto-correction using Aspell

I want to correct some texts automatically as much as possible using aspell. Does aspell offers such a thing? e.g. replacing the misspelled word with the suggestion if there was only one suggestion? ...
2
votes
1answer
48 views

How to fix path typos?

When typing quickly, I often mistype cd ~/myfiles as cd ~?myfiles, resulting in: zsh: no matches found: ~?myfiles Is there a way ZSH can autocorrect such mistakes?
0
votes
1answer
90 views

Disable command name autocorrection

I would like to disable a feature. However Zsh is ignoring the settings I am inputting: > bind zsh: correct 'bind' to 'find' [nyae]? n zsh: command not found: bind > setopt nocorrectall > ...
3
votes
1answer
213 views

Don't try to correct a command that, now, exists

I like zsh's autocorrect for commands. It has an annoying feature, however: sometimes I try to run a command, notice it doesn't exist, install it, then try to run it again, and zsh still wants to make ...
5
votes
1answer
689 views

Stop ZSH from trying to correct ssh to .ssh as an argument

This isn't exactly a duplicate, as I want correct_all still active. I do mess up arguments from time to time and ZSH is happy to help me. The rub happens when I am in my home directory and I want to ...
2
votes
3answers
725 views

Did you mean this command instead? (how to reply to this)

Suppose I entered the following thing into terminal: wgets "link" I will get the response: No command 'wgets' found, did you mean: Command 'wget' from package 'wget' (main) I made a mistake, ...
4
votes
1answer
250 views

How to teach zsh when not do autocorrect?

I love the autocorrection feature of ZSH, but sometimes it gets in the way: If I have a cli directory, it will be suggested when I try to run npm run ci. When running the Docker command docker run -...
2
votes
1answer
140 views

mispelled command in UNIX?

I don't remember a UNIX command that allowed you to remember how to write correctly a command. Let's supose that the command that I say is called MISPELL So running MISPELL will produce the ...
0
votes
1answer
2k views

zsh Command Auto correction

I've seen and read about zsh offering auto correction of a command input. Eg- if I type sl, it should ask me something like "did you mean ls?" But, in my zsh, this does not happen. It just gives an ...
1
vote
0answers
55 views

highlighting of zsh correction

When zsh's autocorrection suggests a change in long filename, it may be hard to spot which change is actually suggested: The example is of cause artificial as tab completion would've done the job (...
17
votes
1answer
675 views

Is it standard behaviour for cd to automatically choose when given an incomplete directory name?

I have three folders called ProjectA, ProjectB and ProjectC. When I tab-complete cd to cd Project and press Enter, it chooses ProjectC. I've found this is also the case with other similar cases; it ...
24
votes
2answers
2k views

How to make the zsh “correct” functionality remember my spell-correction decisions

I have enabled correction (I wouldn't call it autocorrection specifically because of this issue) in zsh by enabling setopt correct in my .zshrc. Now, when I type dtae in a terminal, I get: dtae ...
5
votes
2answers
282 views

Display possible corrections but do not apply them automatically

I have the following completion: zstyle ':completion:*' completer _complete _approximate As a result if I type something incorrectly and hit TAB I will see a list with corrected propositions (what ...
6
votes
1answer
2k views

can you make zsh autocorrect smarter?

I like zsh autocorrect, but it keeps asking me about things that don't need correcting. dzil build zsh: correct 'build' to '.build' [nyae]? % .build is a directory created by the build (or any ...
4
votes
2answers
582 views

Is there a (preferably non-kludgey) way to avoid spelling corrections when using zsh's `mv` command

Although I love zsh, and find its spelling correction useful, it is annoying that it corrects things that obviously should not be corrected. For instance, I just executed mv iso_ iso and it replied ...
18
votes
1answer
3k views

How to disable autocorrection for sudo [command] in zsh?

I have zsh and oh-my-zsh with default values and can't figure out how to turn off autocorrection for specific commands, that I often use, such as: sudo mc or sudo gem update. The thing is that I have ....