Debian Codegraph @

conf/40-recent

raw
1 # 'ctrl-x r' will complete the 12 last modified (mtime) files/directories
2 # © 2018 Michael Stapelberg and contributors (see also: LICENSE)
3
4 # only add this completion if compinit has been called
5 if [[ -v _comps ]]
6 then
7 # 'ctrl-x r' will complete the 12 last modified (mtime) files/directories
8 zle -C newest-files complete-word _generic
9 bindkey '^Xr' newest-files
10 zstyle ':completion:newest-files:*' completer _files
11 zstyle ':completion:newest-files:*' file-patterns '*~.*(omN[1,12])'
12 zstyle ':completion:newest-files:*' menu select yes
13 zstyle ':completion:newest-files:*' sort false
14 zstyle ':completion:newest-files:*' matcher-list 'b:=*' # important
15 fi