zsh-workers
 help / color / mirror / code / Atom feed
73be91e0c84531030851f12ee350ec4056179bf7 blob 586 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
 
#compdef ztodo

_ztodo_entries() {
  local -a entries

  entries=(${${${${(f)"$(_call_program ztodo-entry ztodo list)"}#[[:space:]]##}/:[[:space:]]##/:}%:[[:space:]]#})
  _describe -t ztodo-entry 'todo entry' entries "$@"
}

local -a args reply
args=(
  /$'[^\0]#\0'/
)

local -a todo_entry
todo_entry=(
  /$'[^\0]#\0'/ ':ztodo-entry:todo entry:_ztodo_entries'
)

_regex_words \
  commands "ztodo command" \
  'add:add entry' \
  'del:delete entry:$todo_entry' \
  'clear:clear todo list' \
  'list:show todo list'
args+=("$reply[@]")

_regex_arguments _ztodo "${args[@]}"

_ztodo "$@"
debug log:

solving 73be91e ...
found 73be91e 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).