Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How to change order of completions?
- X-seq: zsh-users 17749
- From: reckoner <reckoner@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: How to change order of completions?
- Date: Wed, 03 Apr 2013 14:39:57 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=IxXfBrUepHGkYJqErTSWFdlSQbfY2PluIihOrvP9ahI=; b=K4vwxdaGUQxjqLouDvsN3i9aTRTUYn4dBen2P21Jx1h+zt3XAhLrn1vYSdGuLEDcVk wlA2BrZHHyLKirDUBFyBmAbytsyaSvOQC65SVfMsu73QlRKn3qt84ke7FNbOwOg2be+3 xSpad4apuGRCwejIV8kaCEqJtPMJLWybycQYwzA2OBsyG9GzjEcjoIVWZ17EOsVSiQcq VGU2Mp2lAAEYVNfx+AzVpINniDE9B4czZdMBdicCJo2pIBWpVlJmRxN9zL+ErXuj611L /UbY4W6MBTBLgkrra+9FtfT9D8uSXgY2VDc2yf9dSmJpq7dbJF2lPwkshbqFOdx3eDFZ VE2A==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
> On Apr 1, 7:27am, reckoner wrote:
> }
> } file.tex , file.dvi, file.log, file.aux
> }
> } and I would like to complete on the *.tex files before any other
file.
> See here: http://zsh.sourceforge.net/Guide/zshguide06.html#l159
> So something like
> zstyle ':completion:*:vi(|m):*' file-patterns \
> '*.tex:tex-files' '*.(c|cpp|c++|h|py):src-files' '*:all-files'
This works great except when I have
% vi () { gvim $* }
as a user-defined function.
% vi<TAB>
doesn't work but
% vim<TAB>
works as expected.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author