Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
perforce completion patch
- X-seq: zsh-workers 33173
- From: Anthony Heading <anthony@xxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: perforce completion patch
- Date: Mon, 15 Sep 2014 15:56:27 -0400
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=ajrh.net; h= message-id:from:to:mime-version:content-transfer-encoding :content-type:subject:date; s=mesmtp; bh=SYGOdd7ounobD/zZmjbPJFH +Xy8=; b=Qu+NrulLgx9VdchGa1GVg9gNXivZrBxbNkR8Xn/L/fR8qlm4mTZkWor +CPINoNG2laSc5eE4oPt5Cjv6dnlV631FeC29cxf+QViaymMfBWnHBher8A8vCeT XjkiQTCBHf9gx0WoGi6Bs5PYOUflZOIJO5NlPVEi/GAJwPBykR7Q=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:from:to:mime-version :content-transfer-encoding:content-type:subject:date; s=smtpout; bh=SYGOdd7ounobD/zZmjbPJFH+Xy8=; b=GXz9XguYjxzW1A1MZSW0gK7WluGa M7r3Spg52grxGBB0ze6t44HDyVTdOYSFncWxXz1xs/utKFPRdp12Uo4fUexV2Dx3 IxOx7ZuwtT2urNpnvyEL4TIxqsDFzjN3UQCoSKD20L+uIQT0vtAVq7uFfrfqcS8e w5MrQnKuXvUIaKU=
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Hi,
I've had the following small patch for perforce completion sitting
around for a while, it
tried to fix e.g. the completion of "foo" when doing "p4 add
foo/bar.cpp". That said,
it runs against the goal of the surrounding comments which aim to skip
directories; I
couldn't work out though why that would ever be desirable.
Anthony
--- functions/Completion/Unix/_perforce.Orig 2014-09-15
15:35:22.820229754 -0400
+++ functions/Completion/Unix/_perforce 2014-09-15 15:38:40.662453398
-0400
@@ -1253,7 +1253,7 @@
[[ $#omitpats -eq 1 && $omitpats[1] = '' ]] && omitpats=()
if (( ${#omitpats} )); then
- _path_files -g "*~(*/|)(${(j:|:)~omitpats})(D.)"
+ _path_files -g "*~(*/|)(${(j:|:)~omitpats})(D)"
else
_path_files
fi
Messages sorted by:
Reverse Date,
Date,
Thread,
Author