zsh-workers
 help / color / mirror / code / Atom feed
b653e7c387893930d3f35998cab2dc87a4281d51 blob 599 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
 
if [[ $1 = n ]]; then
  if [[ $2 = <-> ]]; then
    # Recent directory
    autoload -Uz cdr
    cdr -r
    if [[ -n ${reply[$2]} ]]; then
      typeset -ga reply=(${reply[$2]})
      return 0
    else
      typeset -ga reply=()
      return 1
    fi
  fi
elif [[ $1 = c ]]; then
  if [[ $PREFIX = <-> || -z $PREFIX ]]; then
    typeset -a keys values
    values=(${${(f)"$(cdr -l)"}/ ##/:})
    keys=(${values%%:*})
    local addsuffix
    [[ $ISUFFIX = *\]* ]] || addsuffix='-S]'
    _describe -t dir-index 'recent directory index' \
      values -V unsorted $addsuffix
    return
  fi
fi
return 1
debug log:

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