Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: spelling correction bug?

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


Dominik ^_^  ^_^

Messages sorted by: Reverse Date, Date, Thread, Author