summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2014-03-20 09:35:18 +0000
committerPeter Stephenson <pws@zsh.org>2014-03-20 09:35:18 +0000
commitfd4ac0a8c2c09a02275ee65eaf26f9dccf0de635 (patch)
treecb6f88e6b2920244de1f710fabd471030be2a743
parentda57ddb7c8435c78a072c4d07672d6f68f2c6680 (diff)
downloadzsh-fd4ac0a8c2c09a02275ee65eaf26f9dccf0de635.tar.gz
zsh-fd4ac0a8c2c09a02275ee65eaf26f9dccf0de635.zip
unposted: in Perforce path completion complete depots after //
-rw-r--r--ChangeLog6
-rw-r--r--Completion/Unix/Command/_perforce6
2 files changed, 10 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 6e994a2ed..34600cc31 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2014-03-20 Peter Stephenson <p.stephenson@samsung.com>
+
+ * Completion/Unix/Command/_perforce: finally, after more than
+ ten years, complete depots after // in file paths as it always
+ should have done.
+
2014-03-18 Barton E. Schaefer <schaefer@zsh.org>
* Jun T: 32497: Test/X02zlevi.ztst, Test/comptest: avoid using
diff --git a/Completion/Unix/Command/_perforce b/Completion/Unix/Command/_perforce
index bcfe5229a..839870211 100644
--- a/Completion/Unix/Command/_perforce
+++ b/Completion/Unix/Command/_perforce
@@ -1203,9 +1203,11 @@ _perforce_files() {
# probably ought to be optional (you can do it with tags if
# you really want).
if [[ $PREFIX = //[^/]# && $whole_path -eq 0 ]]; then
- # Complete //clientname spec. Don't complete non-directories...
+ # Complete //clientname or //depot spec.
+ # Don't complete non-directories...
# I don't actually know if they are valid here.
- altfiles+=("clients:Perforce client:_perforce_clients")
+ altfiles+=("clients:Perforce client:_perforce_clients"
+ "depots:Perforce depot:_perforce_depots")
else
local donefiles=1
if [[ -z $dodirs ]]; then