zsh-workers
 help / color / mirror / code / Atom feed
4d5645eaf0b4fafbfd3ec97c38c95970f88bf340 blob 840 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
 
#autoload

local format raw gopt

if [[ "$1" = -e ]]; then
  local expl ret=1 tag

  _comp_mesg=yes

  if (( $# > 2 )); then
    tag="$2"
    shift
  else
    tag="$curtag"
  fi
  _tags "$tag" && while _next_label "$tag" expl "$2"; do
    compadd ${expl:/-X/-x}
    ret=0
  done

  (( ! $compstate[nmatches] )) && [[ $compstate[insert] = *unambiguous* ]] &&
      compstate[insert]=

  return ret
fi

gopt=()
zparseopts -D -a gopt 1 2 V J

_tags messages || return 1

if [[ "$1" = -r ]]; then
  raw=yes
  shift
  format="$1"
else
  zstyle -s ":completion:${curcontext}:messages" format format ||
      zstyle -s ":completion:${curcontext}:descriptions" format format
fi

if [[ -n "$format$raw" ]]; then
  [[ -z "$raw" ]] && zformat -f format "$format" "d:$1" "${(@)argv[2,-1]}"
  builtin compadd "$gopt[@]" -x "$format"
  _comp_mesg=yes
fi
debug log:

solving 4d5645eaf ...
found 4d5645eaf in https://git.vuxu.org/mirror/zsh/

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