zsh-workers
 help / color / mirror / code / Atom feed
b32e049f779355dc70f045d3284a16545b25c0d0 blob 1468 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
53
54
55
 
#autoload

# This should be used to complete parameter names if you need some of the
# extra options of compadd. It completes only non-local parameters.

# If you specify a -g option with a pattern, the pattern will be used to
# restrict the type of parameters matched.

local MATCH MBEGIN MEND \
  disp dopt expl fakes faked i matches pattern pfilt sep tmp

if compset -P '*:'; then
  _history_modifiers p
  return
fi

_tags parameters
( _tags && _requested parameters ) ||
  return

pattern=(-g \*)
zparseopts -D -K -E g:=pattern

fakes=()
faked=()
if zstyle -a ":completion:${curcontext}:" fake-parameters tmp; then
  for i in "$tmp[@]"; do
    if [[ "$i" = *:* ]]; then
      faked=( "$faked[@]" "$i" )
    else
      fakes=( "$fakes[@]" "$i" )
    fi
  done
fi

zstyle -t ":completion:${curcontext}:parameters" prefix-needed && \
 [[ $PREFIX != [_.]* ]] && \
 pfilt='[^_.]'

_description parameters expl parameter
compadd "$expl[@]" -O matches - \
  "${(@M)${(@k)parameters[(R)${pattern[2]}~*local*]}:#${~pfilt}*}" \
  "$fakes[@]" \
  "${(@)${(@M)faked:#${~pattern[2]}}%%:*}"

if zstyle -t ":completion:${curcontext}:parameters" extra-verbose; then
  zstyle -s ":completion:${curcontext}:parameters" list-separator sep ||
    sep=--
  zformat -a disp " $sep " \
    ${matches[@]:/(#m)*/"${MATCH}:${${parameters[$MATCH]:#*special*}:+${(Pkv@q+)MATCH}}"}
  disp=( "${disp[@]:/(#m)*/$MATCH[1,COLUMNS]}" )
  dopt=( -d disp )
fi

compadd "$expl[@]" $dopt -Q -a matches
debug log:

solving b32e049f7 ...
found b32e049f7 in https://inbox.vuxu.org/zsh-workers/CAHLkEDtFJbs0gUT-CD-FNBhqP6CiHqiNxbfmbhAJHLYqC+kO=w@mail.gmail.com/ ||
	https://inbox.vuxu.org/zsh-workers/CAHLkEDt=LnW=ytsa31TQsVEQCV6cJfD8N0PWO5iuXGcLJ-tfCA@mail.gmail.com/
found 207e5cf78 in https://git.vuxu.org/mirror/zsh/
preparing index
index prepared:
100644 207e5cf78aae2541fd0bf6ff7fb1de4ec318cc82	Completion/Zsh/Type/_parameters

applying [1/2] https://inbox.vuxu.org/zsh-workers/CAHLkEDtFJbs0gUT-CD-FNBhqP6CiHqiNxbfmbhAJHLYqC+kO=w@mail.gmail.com/
diff --git a/Completion/Zsh/Type/_parameters b/Completion/Zsh/Type/_parameters
index 207e5cf78..b32e049f7 100644

error: corrupt patch at line 26

git apply error: exit status=128
trying https://inbox.vuxu.org/zsh-workers/CAHLkEDt=LnW=ytsa31TQsVEQCV6cJfD8N0PWO5iuXGcLJ-tfCA@mail.gmail.com/

applying [2/2] https://inbox.vuxu.org/zsh-workers/CAHLkEDt=LnW=ytsa31TQsVEQCV6cJfD8N0PWO5iuXGcLJ-tfCA@mail.gmail.com/
diff --git a/Completion/Zsh/Type/_parameters b/Completion/Zsh/Type/_parameters
index 207e5cf78..b32e049f7 100644

Checking patch Completion/Zsh/Type/_parameters...
Applied patch Completion/Zsh/Type/_parameters cleanly.

index at:
100644 b32e049f779355dc70f045d3284a16545b25c0d0	Completion/Zsh/Type/_parameters

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).