Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Is it possible to list all styles in all contexts?
- X-seq: zsh-users 12743
- From: "Ian Tegebo" <ian.tegebo@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Is it possible to list all styles in all contexts?
- Date: Fri, 28 Mar 2008 15:18:47 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=NMq+Lse5J/otTRbrfgQSOncDAYKYpd+8tExDV1e/xGg=; b=EdGtasSLtN2RaAGuYpDKsFz15oE9yqII59/IlDKtQYMVSV5Dmkda/jiJ135Ne1a//KMcOmeMEvdQEEUypyjScsf5xFGsml7oDxYWSjI4H7uyQNaB6zJYfcc4Y7wwIJnaiOROkN918rwF8UHPzxpQ0lGeP+lQUZQ/EUdauN9yG28=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=IALeZ8NAd5PStoMInHo4FiH9IB9tCUqPvQYQJWpe8/Rwl8x6H1Q9oPndlBIQCD59N+sQ8750ECxZoeowo4nrBnwpTw5x23akKELcfJqXHoEViBgjhFPW9SUGQK6wiwyuRGQCEMxY3M6n9o6lUCPkadaZOR5d1ggMaXH9DXnBV6A=
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
I've been using zsh for a while and am now trying to learn enough to write
completions. It seems one needs to understand and lookup styles quite well so
my natural inclination is to list them all and then browse/experiment.
Intuitively, I think I should be able to list them all with:
zstyle -L "*"
But only one result for 'sudo' is returned, presumably added by my
distribution. I was expecting something like:
:zle:*
:widget:*
...
:completion::*
:completer:*
:complete:*
:approximate:*
...
...
I'm not sure how correct any of this is, but it seems there are quite a lot of
styles populating various parts of contexts and I'd like to see what the
structure looks like.
I've also found some other threads with similar goals/desires:
Comments on Completion Documentation
http://www.zsh.org/mla/users//2006/msg00931.html
Recommendation to read "From Bash to Z Shell"
http://www.zsh.org/mla/users//2006/msg00120.html
Previous effort to organize options
http://www.zsh.org/mla/users//2004/msg00487.html
After reading these, I anticipate an effort similar to msg 487 with respect to
organizing context-styles in part to address concerns raised in msg 931; I'm
wondering if the book mentioned in msg 120 would help in answering these kinds
of questions.
To rephrase the original question, how do I programmatically expand
all contexts
into a horizontal tree whose leaves also contain the values tied to
those styles?
Thanks,
--
Ian Tegebo
Messages sorted by:
Reverse Date,
Date,
Thread,
Author