From: Anthony Heading <anthony@ajrh.net>
To: zsh-workers@zsh.org
Subject: perforce completion patch
Date: Mon, 15 Sep 2014 15:56:27 -0400 [thread overview]
Message-ID: <1410810987.1055986.167801549.1F9D6403@webmail.messagingengine.com> (raw)
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
next reply other threads:[~2014-09-15 19:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-15 19:56 Anthony Heading [this message]
2014-09-16 19:35 ` Peter Stephenson
2014-09-23 10:14 ` Peter Stephenson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1410810987.1055986.167801549.1F9D6403@webmail.messagingengine.com \
--to=anthony@ajrh.net \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).