Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Command alias in non-command position
- X-seq: zsh-workers 4366
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxxx
- Subject: Re: Command alias in non-command position
- Date: Thu, 27 Aug 1998 10:55:43 +0200 (MET DST)
- In-reply-to: "Bart Schaefer"'s message of Wed, 26 Aug 1998 10:36:27 -0700
Bart Schaefer wrote:
>
> On Aug 26, 5:35pm, Bruce Stephens wrote:
>
> ...
>
> } I already think I ought to be able to change how spell-correction
> } works, to say that some words just don't correspond to files (like the
> } first argument to tar), and possibly to say that some words ought to
> } correspond to non-existent files.
>
> Programmable spelling correction would be the next logical step after
> programmable completion, I suppose.
>
I always liked to think about joining them. Make the completion code
return a list of possible words for a certain situation and then let
the corection code work with this list (instead of just
filenames). Or, integrate the correction code in the completion code,
turning it into some kind of general `find out what we can do here'-code
and let correction be just a different interface for that code.
The quote from Bruce shows that joining them may require a few more
possibilities in describing possible words (e.g. non-existent files).
Bye
Sven
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author