mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-03 10:21:46 +02:00
unposted: in Perforce path completion complete depots after //
This commit is contained in:
parent
da57ddb7c8
commit
fd4ac0a8c2
2 changed files with 10 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue