Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Automatic long options completion for --?
- X-seq: zsh-workers 12471
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: Automatic long options completion for --?
- Date: Tue, 1 Aug 2000 17:41:57 +0000
- In-reply-to: <200008011102.NAA06774@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <200008011102.NAA06774@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
On Aug 1, 1:02pm, Sven Wischnowsky wrote:
} Subject: Re: Automatic long options completion for --?
}
} Andrej Borsenkow wrote:
}
} > Is it possible to complete after -- for *any* command (of course, assuming
} > that no specific completion is defined)?
}
} compdef -P _use_lo '*'
I've been fooling around with a function to be a front-end to _use_lo
that would try to determine whether the command accepts --help and poke
_use_lo into _comps if it does. Maybe there's some way to combine it
with Adam's completion caching layer so zsh could "learn" which commands
can be completed that way.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author