Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: spelling correction bug?
- X-seq: zsh-users 6580
- From: Peter Stephenson <pws@xxxxxxx>
- To: dominik.vogt@xxxxxx
- Subject: Re: spelling correction bug?
- Date: Tue, 16 Sep 2003 13:02:35 +0100
- Cc: Zsh Users <zsh-users@xxxxxxxxxx>
- In-reply-to: "Dominik Vogt"'s message of "Tue, 16 Sep 2003 13:45:43 +0200." <20030916114543.GC21760@xxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
Dominik Vogt wrote:
> I have my zsh-4.0.4 configured for spelling correction:
>
> setopt CORRECT
> unsetopt CORRECT_ALL
>
> (not using the new completion system yet). Now, when I type
>
> $ mape all
>
> zsh asks
>
> zsh: correct 'mape' to 'mpage' [nyae]?
>
> But "mpage" is two character errors away from "mape", while "make"
> is only one error away. Shouldn't it try closer matches first?
This sort of correction (unlike that in the completion system) is
actually based on the keyboard layout; that's why there's an option
DVORAK to use the Dvorak keyboard. Hence it decides `k' isn't near
enough to `p' for you to have meant that, whereas you might (without
reference to the keyboard) have missed out a letter or transposed a
couple.
There's a long-standing wish that you could use completion-style
correction at this point, but it's a lot of work. With Sven absent,
it's not even clear there's anyone capable of doing it at the moment.
pws
**********************************************************************
The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential
and/or privileged material.
Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by
persons or entities other than the intended recipient is
prohibited.
If you received this in error, please contact the sender and
delete the material from any computer.
**********************************************************************
Messages sorted by:
Reverse Date,
Date,
Thread,
Author