zsh-workers
 help / color / mirror / code / Atom feed
* perforce completion patch
@ 2014-09-15 19:56 Anthony Heading
  2014-09-16 19:35 ` Peter Stephenson
  0 siblings, 1 reply; 3+ messages in thread
From: Anthony Heading @ 2014-09-15 19:56 UTC (permalink / raw)
  To: zsh-workers

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-09-23 10:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-15 19:56 perforce completion patch Anthony Heading
2014-09-16 19:35 ` Peter Stephenson
2014-09-23 10:14   ` Peter Stephenson

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).