zsh-workers
 help / color / mirror / code / Atom feed
eee999fc46f0a4b443828a53533b3ac48512b841 blob 2267 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
 
#compdef compadd -P _*

local curcontext="$curcontext" state line ret=1
typeset -A opt_args

_arguments -C -s -S -A "-*" \
  '-P+[specify prefix]:prefix' \
  '-S+[specify suffix]:suffix' \
  '-p+[specify hidden prefix]:hidden prefix' \
  '-s+[specify hidden suffix]:hidden suffix' \
  '-i+[specify ignored prefix]:ignored prefix' \
  '-I+[specify ignored suffix]:ignored suffix' \
  '(-k)-a[matches are elements of specified arrays]' \
  '(-a)-k[matches are keys of specified associative arrays]' \
  '-d+[specify display strings]:array:_parameters -g "*array*"' \
  '-l[list display strings one per line, not in columns]' \
  '-o[order matches by display string not by match string]' \
  '(-1 -E)-J+[specify match group]:group' \
  '-V+[specify unsorted match group]:group' \
  '(-J -E)-1[remove only consecutive duplicates from group]' \
  '-2[preserve all duplicates]' \
  '(-x)-X[specify explanation]:explanation' \
  '(-X)-x[specify unconditional explanation]:explanation' \
  '-q[make suffix autoremovable]' \
  '-r+[specify character class for suffix autoremoval]:character class' \
  '-R+[specify function for suffix autoremoval]:function:_functions' \
  '-f[mark matches as being files]' \
  '-e[mark matches as being parameters]' \
  '-W[specify location for matches marked as files]' \
  '-F+[specify array of ignore patterns]:array:_parameters -g "*array*"' \
  '-Q[disable quoting of matchines]' \
  '*-M[specify matching specifications]' \
  '-n[hide matches in completion listing]' \
  '-U[disable internal matching of completion candidates]' \
  '-O+[populate array with matches instead of adding them]:array:_parameters -g "*array*"' \
  '-A+[populate array with expanded matches instead of adding them]:array:_parameters -g "*array*"' \
  '-D+[delete elements from array corresponding to non-matching candidates]:array:_parameters -g "*array*"' \
  '-C[add special match that expands to all other matches]' \
  '(-1 -J)-E+[add specified number of display only matches]:number' \
  '*:candidate:->candidates' && ret=0

if [[ -n $state ]]; then
  if (( $+opt_args[-a] )); then
    _parameters -g "*array*" && ret=0
  elif (( $+opt_args[-k] )); then
    _parameters -g "*assoc*" && ret=0
  else
    _message -e candidate candidates
  fi
fi

return ret
debug log:

solving eee999f ...
found eee999f in https://inbox.vuxu.org/zsh-workers/16227.1436350073@thecus.kiddle.eu/

applying [1/1] https://inbox.vuxu.org/zsh-workers/16227.1436350073@thecus.kiddle.eu/
diff --git a/Completion/Zsh/Command/_compadd b/Completion/Zsh/Command/_compadd
new file mode 100644
index 0000000..eee999f

Checking patch Completion/Zsh/Command/_compadd...
Applied patch Completion/Zsh/Command/_compadd cleanly.

index at:
100644 eee999fc46f0a4b443828a53533b3ac48512b841	Completion/Zsh/Command/_compadd

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).