Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: spelling correction bug?
- X-seq: zsh-users 6581
- From: Dominik Vogt <dominik.vogt@xxxxxx>
- To: Zsh Users <zsh-users@xxxxxxxxxx>
- Subject: Re: spelling correction bug?
- Date: Tue, 16 Sep 2003 14:11:54 +0200
- In-reply-to: <1954.1063713755@xxxxxxx>
- Mail-followup-to: Zsh Users <zsh-users@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20030916114543.GC21760@xxxxxx> <1954.1063713755@xxxxxxx>
- Reply-to: dominik.vogt@xxxxxx
On Tue, Sep 16, 2003 at 01:02:35PM +0100, Peter Stephenson wrote:
> 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.
Thanks for the quick answer. Actually I have been considering to
give up my work on fvwm and instead take a look at the zsh sources
:-)
Ciao
Dominik ^_^ ^_^
Messages sorted by:
Reverse Date,
Date,
Thread,
Author