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
- X-seq: zsh-users 13772
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Richard Hartmann <richih.mailinglist@xxxxxxxxx>
- Subject: Re: BInding a key to complete _files no matter what completion would normally do
- Date: Wed, 28 Jan 2009 17:07:19 +0100
- Cc: Zsh Users <zsh-users@xxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=ASf2LJ2lyby2Ig+dhxDT6A11x+kzxBMCkW6yNDk5stY=; b=F4hZRqS6EMM5q14pVbdFuscUHFwJA9az+NSDilJlsf66jzw2wEeI05hL5ouiTwynq1 0iKC6fMJHkXlIxfGrhZGP6nVDm4aCLER7Jw617QRhixv5+Hp5H0I0bMWWF93tswOE1Fd fhbCTVVXaH3UoOdjqK7EYwKY/Q37AgIJyfAtQ=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=ntPhmauToecqcfWq5Hdq0NJO+9jweQRbr6VZbz6J64VeeefF+HMHWIFDTMKlg7ov8D X7fLwGz10shf/TmpXi3I08jF21rYfue+eeZdTVnmpsEXDUcIyMkoIo85vFVBHDf+Z9lO y8VCcdqu8OaZ8O6p+1G7YqcpmSIX8YJdbl/BA=
- In-reply-to: <2d460de70901280759n729e8s647d6d3bd09ae5b9@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <2d460de70901280759n729e8s647d6d3bd09ae5b9@xxxxxxxxxxxxxx>
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