diff --git a/zsh/zsh/zshrc.d/20_completion b/zsh/zsh/zshrc.d/20_completion index 61f8cced..9ea133ae 100644 --- a/zsh/zsh/zshrc.d/20_completion +++ b/zsh/zsh/zshrc.d/20_completion @@ -232,6 +232,13 @@ zstyle ':completion:current-screen-words-(prefix|anywhere):*' completer _tmux_pa zstyle ':completion:current-screen-words-(prefix|anywhere):*' ignore-line current zstyle ':completion:current-screen-words-anywhere:*' matcher-list 'b:=* m:{A-Za-z}={a-zA-Z}' +# modified from http://www.zsh.org/mla/users/2015/msg00081.html +zstyle ':completion:most-recent-file:*' file-sort modification +zstyle ':completion:most-recent-file:*' file-patterns '%p:all-files' +zstyle ':completion:most-recent-file:*' completer _files +zle -C most-recent-file menu-complete _generic +bindkey "^X^N" most-recent-file + zle -C extpwds menu-complete _generic bindkey "^X^T" extpwds zstyle ':completion:extpwds::::' completer _extpwds