mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-05 20:51:12 +02:00
zsh-workers/8930
This commit is contained in:
parent
9618580a81
commit
f321361b45
2 changed files with 9 additions and 1 deletions
|
@ -6,7 +6,7 @@ if _style -a "$1" list-colors val; then
|
||||||
if [[ "$1" = default ]]; then
|
if [[ "$1" = default ]]; then
|
||||||
ZLS_COLORS="${(j.:.)${(@)val:gs/:/\\\:}}"
|
ZLS_COLORS="${(j.:.)${(@)val:gs/:/\\\:}}"
|
||||||
else
|
else
|
||||||
eval "ZLS_COLORS=\"(${i})\${(j.:(${i}).)\${(@)val:gs/:/\\\:}}:\${ZLS_COLORS}\""
|
eval "ZLS_COLORS=\"(${1})\${(j.:(${1}).)\${(@)val:gs/:/\\\:}}:\${ZLS_COLORS}\""
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -1673,6 +1673,14 @@ This function also uses the tt(format) style for the tt(messages) tag in
|
||||||
preference to the tt(format) style for the tt(descriptions) tag. The
|
preference to the tt(format) style for the tt(descriptions) tag. The
|
||||||
latter is used only if the former is unset.
|
latter is used only if the former is unset.
|
||||||
)
|
)
|
||||||
|
item(tt(_setup))(
|
||||||
|
This function expects a tag as its argument and sets up the special
|
||||||
|
parameters used by the completion system appropriately for the tag,
|
||||||
|
using styles such as tt(list-colors) and tt(last-prompt).
|
||||||
|
|
||||||
|
Note that this function is called automatically from tt(_description)
|
||||||
|
so that one normally don't have to call it explicitly.
|
||||||
|
)
|
||||||
item(tt(_tags))(
|
item(tt(_tags))(
|
||||||
If called with arguments, these are taken as the names of the tags for
|
If called with arguments, these are taken as the names of the tags for
|
||||||
the types of matches the calling completion function can generate in
|
the types of matches the calling completion function can generate in
|
||||||
|
|
Loading…
Reference in a new issue