Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
zstyle for function instead of command?
- X-seq: zsh-users 13465
- From: "sam reckoner" <sam.reckoner@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: zstyle for function instead of command?
- Date: Fri, 21 Nov 2008 16:14:28 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=UDtdSBa1TiGaU41vdRnvzVyZYxYDpJgHxhWbX1FrdeA=; b=J3fQRDGWBfSkpbGPJFdV+APdjkJEHnslivVI6z96+EGGjIsGDuH0Qvqt96fya8gIup r445QmaXITbIC3WE/q3VRY5ywryG50HRIduZjMNrQQJJGCKIEXJhrapagQ7bSs21AH5L SXJHmFarutp3zOg57Gphk1gXHLnaL1EN3EwT8=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=cjK9cR2Dyt7PD7l1QQeaT0XycdW2wKBlk5UwUksc/SPac8yKhiIAjRSdWOtQmtWldd DNVIXlSaXTd5KTmy73ASxmXekYzrWKlawntPrxroQa6ZP2Ej6+wrSP1xAPCO6lFv4O5P cj/6hop1pYV3UI9rNcRNQ1CMPtK3HyDFWjWXU=
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
I have defined the following function:
v () {
'/cygdrive/c/Vim/vim71/gvim.exe' $* &
}
I can do
% zstyle ':completion:*:*:gvim:*:*' file-patterns '*.py' '*.*'
and get gvim to complete first on *.py files, but it doesn't work with
the function. In other words,
% v <TAB>
Does not restrict completions to *.py files, even if they are there.
I have tried doing
% zstyle ':completion:*:*:v:*:*' file-patterns '*.py' '*.*'
but that doesn't work either.
Little help?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author