diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-04-02 11:02:53 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-04-02 11:02:53 +0000 |
commit | fe5acd2287b8d3ea19a5cfed8c5f58259650c796 (patch) | |
tree | 808d7dbff0b946f7222ca190e68abed36424a13b /Completion | |
parent | c789f5dbdb5e05a7e47b3cd06f3386dfddb438ca (diff) | |
download | zsh-fe5acd2287b8d3ea19a5cfed8c5f58259650c796.tar.gz zsh-fe5acd2287b8d3ea19a5cfed8c5f58259650c796.tar.xz zsh-fe5acd2287b8d3ea19a5cfed8c5f58259650c796.zip |
moved to Completion/Base/Core/_description
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/Core/_description | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/Completion/Core/_description b/Completion/Core/_description deleted file mode 100644 index 2c4232ade..000000000 --- a/Completion/Core/_description +++ /dev/null @@ -1,70 +0,0 @@ -#autoload - -local name gropt=-J format gname hidden hide match opts - -opts=() - -if [[ "$1" = -([12]|)[VJ] ]]; then - gropt="$1" - shift -fi - -_lastdescr=( "$_lastdescr[@]" "$3" ) - -zstyle -s ":completion:${curcontext}:$1" group-name gname && - [[ -z "$gname" ]] && gname="$1" - -_setup "$1" "${gname:--default-}" - -name="$2" - -zstyle -s ":completion:${curcontext}:$1" format format || - zstyle -s ":completion:${curcontext}:descriptions" format format - -if zstyle -s ":completion:${curcontext}:$1" hidden hidden && - [[ "$hidden" = (all|yes|true|1|on) ]]; then - [[ "$hidden" = all ]] && format='' - opts=(-n) -fi -zstyle -s ":completion:${curcontext}:$1" matcher match && - opts=($opts -M "$match") -[[ -n "$_matcher" ]] && opts=($opts -M "$_matcher") - -if [[ -z "$_comp_no_ignore" ]]; then - zstyle -a ":completion:${curcontext}:$1" ignored-patterns _comp_ignore || - _comp_ignore=() - - zstyle -s ":completion:${curcontext}:$1" ignore-line hidden && - case "$hidden" in - true|yes|on|1) _comp_ignore=( "$_comp_ignore[@]" "$words[@]" );; - current) _comp_ignore=( "$_comp_ignore[@]" "$words[CURRENT]" );; - current-shown) [[ "$compstate[old_list]" = *shown* ]] && - _comp_ignore=( "$_comp_ignore[@]" "$words[CURRENT]" );; - other) _comp_ignore=( "$_comp_ignore[@]" - "${(@)words[1,CURRENT-1]}" - "${(@)words[CURRENT+1,-1]}" );; - esac - - (( $#_comp_ignore )) && opts=( $opts -F _comp_ignore ) -else - _comp_ignore=() -fi - -shift 2 -[[ -n "$format" ]] && zformat -f format "$format" "d:$1" "${(@)argv[2,-1]}" - -if [[ -n "$gname" ]]; then - if [[ -n "$format" ]]; then - set -A "$name" "$opts[@]" "$gropt" "$gname" -X "$format" - else - set -A "$name" "$opts[@]" "$gropt" "$gname" - fi -else - if [[ -n "$format" ]]; then - set -A "$name" "$opts[@]" "$gropt" -default- -X "$format" - else - set -A "$name" "$opts[@]" "$gropt" -default- - fi -fi - -return 0 |