Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: BInding a key to complete _files no matter what completion would normally do



2009/1/28 Richard Hartmann <richih.mailinglist@xxxxxxxxx>:
> Hi all,
>
> can I bind a key to complete _files no matter what completion would normally
> do or not do?

Yes,

zstyle ':completion:most-recent-file:*' match-original both
zstyle ':completion:most-recent-file:*' file-sort modification
zstyle ':completion:most-recent-file:*' file-patterns '*:all\ files'
zstyle ':completion:most-recent-file:*' hidden all
zstyle ':completion:most-recent-file:*' completer _files
zle -C most-recent-file menu-complete _generic
bindkey "^N"      most-recent-file

This is a binding for completing the newest files, obviously you can
just change the sort back to default.

-- 
Mikael Magnusson



Messages sorted by: Reverse Date, Date, Thread, Author