Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

perforce completion patch



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