about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:10:36 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:10:36 +0000
commit71f2dbfad7535f1335e8cd382bf8c9c6ef6360b7 (patch)
treeb1844cfd82a6ee4ab7b9971f2a7b3e0766acc832 /Completion
parentbf2a1aca90328a57d9adb2c6fcb9a98880f11f17 (diff)
downloadzsh-71f2dbfad7535f1335e8cd382bf8c9c6ef6360b7.tar.gz
zsh-71f2dbfad7535f1335e8cd382bf8c9c6ef6360b7.tar.xz
zsh-71f2dbfad7535f1335e8cd382bf8c9c6ef6360b7.zip
moved to Completion/Base/Utility/_describe
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Base/_describe62
1 files changed, 0 insertions, 62 deletions
diff --git a/Completion/Base/_describe b/Completion/Base/_describe
deleted file mode 100644
index a658d16df..000000000
--- a/Completion/Base/_describe
+++ /dev/null
@@ -1,62 +0,0 @@
-#autoload
-
-# This can be used to add options or values with descriptions as matches.
-
-local _opt _expl _tmps _tmpd _tmpmd _tmpms _ret=1 _showd _nm _hide _args
-local _type=values _descr
-
-# Get the option.
-
-if [[ "$1" = -o ]]; then
-  _type=options
-  shift
-elif [[ "$1" = -t ]]; then
-  _type="$2"
-  shift 2
-elif [[ "$1" = -t* ]]; then
-  _type="${1[3,-1]}"
-  shift
-fi
-
-# Do the tests. `showd' is set if the descriptions should be shown.
-
-zstyle -T ":completion:${curcontext}:$_type" verbose && _showd=yes
-
-_descr="$1"
-shift
-
-[[ "$_type" = options ]] &&
-    zstyle -t ":completion:${curcontext}:options" prefix-hidden && _hide=yes
-
-_tags "$_type"
-while _tags; do
-  while _next_label "$_type" _expl "$_descr"; do
-
-    if [[ -n "$_showd" ]]; then
-      compdescribe -I ' -- ' "$@"
-    else
-      compdescribe -i "$@"
-    fi
-
-    while compdescribe -g _args _tmpd _tmpmd _tmps _tmpms; do
-
-      # See if we should remove the option prefix characters.
-
-      if [[ -n "$_hide" ]]; then
-        if [[ "$PREFIX" = --* ]]; then
-          _tmpd=( "${(@)_tmpd#--}" )
-          _tmps=( "${(@)_tmps#--}" )
-        elif [[ "$PREFIX" = [-+]* ]]; then
-          _tmpd=( "${(@)_tmpd#[-+]}" )
-          _tmps=( "${(@)_tmps#[-+]}" )
-        fi
-      fi
-
-      compadd "$_args[@]" "$_expl[@]" -ld _tmpd -a _tmpmd && _ret=0
-      compadd "$_args[@]" "$_expl[@]" -d _tmps  -a _tmpms && _ret=0
-    done
-  done
-  (( _ret )) || return 0
-done
-
-return 1