Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Don't suggest completion functions when 'correcting' on non-existant commands
- X-seq: zsh-workers 26236
- From: Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx>
- To: Zsh Workers <zsh-workers@xxxxxxxxxx>
- Subject: Re: Don't suggest completion functions when 'correcting' on non-existant commands
- Date: Fri, 2 Jan 2009 23:54:32 +0100
- In-reply-to: <081231104649.ZM22712@xxxxxxxxxxxxxxxxxxxxxx>
- Mail-followup-to: Zsh Workers <zsh-workers@xxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <2d460de70812310948s2ecf04e3gb13ac58311ead2f@xxxxxxxxxxxxxx> <20081231181247.GE4052@xxxxxxxxxxxxxxx> <081231104649.ZM22712@xxxxxxxxxxxxxxxxxxxxxx>
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>:
[...]
> On Dec 31, 7:12pm, Frank Terbeck wrote:
> }
> } Here's a possible solution for this:
> } <http://bewatermyfriend.org/posts/2007/12-26.11-50-38-tooltime.html>
>
> That's not really a solution; it just replaces the correction prompt
> with a different prompt.
Well, to me it's not really another prompt, because you're not
actually prompted for anything. It's merely a warning message, that
gets displayed below the prompt. If you hit enter again, the
command line is processed normally (probably with command correction
kicking in). So, it does prevent a prompt the first time you hit
enter.
E.g.: If it's due to a not-yet-installed piece of software you can
push-input the current cmdline, aptitude-install (or whatever way your
OS does it) and then just hit enter to have the pushed command
executed - with the missing program installed.
> It might be interesting for other reasons.
What would those reasons be? ...maybe you see use-cases I didn't see,
yet. :-)
Regards, Frank
--
In protocol design, perfection has been reached not when there is
nothing left to add, but when there is nothing left to take away.
-- RFC 1925
Messages sorted by:
Reverse Date,
Date,
Thread,
Author