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:24:58 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:24:58 +0000
commit92c9f4faf279f469af2d774784aff2e0b32cca9d (patch)
tree989a98285168f373d471a4783e901b7884013e51 /Completion
parent134b17eb0f05e10de957c6a5053515e929eb31fb (diff)
downloadzsh-92c9f4faf279f469af2d774784aff2e0b32cca9d.tar.gz
zsh-92c9f4faf279f469af2d774784aff2e0b32cca9d.tar.xz
zsh-92c9f4faf279f469af2d774784aff2e0b32cca9d.zip
moved to Completion/Zsh/Context/_value
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Base/_value61
1 files changed, 0 insertions, 61 deletions
diff --git a/Completion/Base/_value b/Completion/Base/_value
deleted file mode 100644
index 15218eb60..000000000
--- a/Completion/Base/_value
+++ /dev/null
@@ -1,61 +0,0 @@
-#compdef -value- -array-value-
-
-_value () {
-  # You can customize completion for different parameters by writing a
-  # function `_value:<name>', where <name> is the name of the parameter.
-  # When completing values of elements of associative arrays, we first
-  # search for a function `_value:<assoc>-<key>' and then for 
-  # `_value:<assoc>', so it's simple to define different functions
-  # for different keys or one function for a whole association.
-
-  if (( $+functions[_value:$compstate[parameter]] )); then
-    "_value:$compstate[parameter]" "$@"
-  elif (( $+functions[_value:${compstate[parameter]%%-*}] )); then
-    "_value:${compstate[parameter]%%-*}" "$@"
-  elif [[ "$compstate[parameter]" != *-* &&
-          "${(Pt)${compstate[parameter]}}" = assoc* ]]; then
-    if (( CURRENT & 1 )); then
-      _wanted association-keys expl 'association key' \
-          compadd -k "$compstate[parameter]"
-    else
-      compstate[parameter]="${compstate[parameter]}-${words[CURRENT-1]}"
-      _value "$@"
-    fi
-  else
-    local pats
-
-    if { zstyle -a ":completion:${curcontext}:" assign-list pats &&
-         [[ "$compstate[parameter]" = (${(j:|:)~pats}) ]] } ||
-       [[ "$PREFIX$SUFFIX" = *:* ]]; then
-      compset -P '*:'
-      compset -S ':*'
-      _default -r '\-\n\t /:' "$@"
-    else
-      _default "$@"
-    fi
-  fi
-}
-
-_value:CPPFLAGS () {
-  compset -q
-  if compset -P '-I'; then
-    _files -/ "$@"
-  else
-    _default "$@"
-  fi
-}
-
-_value:LDFLAGS () {
-  compset -q
-  if compset -P '-L'; then
-    _files -/ "$@"
-  elif compset -P '-R'; then
-    compset -P '*:'
-    compset -S ':*'
-    _files -/ -S/ -r '\n\t\- /:' "$@"
-  else
-    _default "$@"
-  fi
-}
-
-_value "$@"