zsh-workers
 help / color / mirror / code / Atom feed
* Why doesn't compconfig[correct] apply to command names?
@ 1999-03-14  6:38 Bart Schaefer
  0 siblings, 0 replies; 3+ messages in thread
From: Bart Schaefer @ 1999-03-14  6:38 UTC (permalink / raw)
  To: zsh-workers

The correction logic is all in the branch of _main_complete that is used
only when the context is not command.  But I'd like to have it fix up the
command names, too, so that the rest of the line uses completions for the
correct command.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Why doesn't compconfig[correct] apply to command names?
  1999-03-15 10:24 Sven Wischnowsky
@ 1999-03-15 16:18 ` Bart Schaefer
  0 siblings, 0 replies; 3+ messages in thread
From: Bart Schaefer @ 1999-03-15 16:18 UTC (permalink / raw)
  To: Sven Wischnowsky; +Cc: zsh-workers

Sven Wischnowsky writes:
 > 
 > Bart Schaefer wrote:
 > > The correction logic is all in the branch of _main_complete that is used
 > > only when the context is not command.  But I'd like to have it fix up the
 > > command names, too
 > > correct command.
 > 
 > Err... you haven't tried, have you? (At least it works for me.)

I had tried, in fact.  The test I did (by accident) was

zsh% maiql<TAB>

expecting it to complete to "mailq", which it did not -- it feeped.  After
peering at _main_complete for a bit, I tried

zsh% echo =maiql<TAB>

and got a list of about a dozen possible corrections, which is why I
brought it up.  However, now that I've rebuilt with all the latest
patches, it is working the same in both places.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Why doesn't compconfig[correct] apply to command names?
@ 1999-03-15 10:24 Sven Wischnowsky
  1999-03-15 16:18 ` Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: Sven Wischnowsky @ 1999-03-15 10:24 UTC (permalink / raw)
  To: zsh-workers


Bart Schaefer wrote:

> The correction logic is all in the branch of _main_complete that is used
> only when the context is not command.  But I'd like to have it fix up the
> command names, too, so that the rest of the line uses completions for the
> correct command.

Err... you haven't tried, have you? (At least it works for me.)

The auto-correction is done after the `fi' of the test for command-
completion. In fact, since `command' is now the context for
command-position and arguments, this would have made the auto-correction
be used only for special contexts.


Bye
 Sven


--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1999-03-15 16:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-03-14  6:38 Why doesn't compconfig[correct] apply to command names? Bart Schaefer
1999-03-15 10:24 Sven Wischnowsky
1999-03-15 16:18 ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).