Change 18752
zachwhaley
committed this change
into
//guest/zachwhaley/p4_completion
Request Review
Download .zip
Add completion for files with revision specifiers
This should allow commands that use file revisions to complete those revisions.
Example: | is the cursor
$ p4 filelog |<TAB><TAB>
LICENSE p4_completion.bash .p4config .p4ignore README.md
$ p4 filelog p4|<TAB>
$ p4 filelog p4_completion.bash|
$ p4 filelog p4_completion.bash|<TAB><TAB>
p4_completion.bash@ p4_completion.bash#
$ p4 filelog p4_completion.bash#|<TAB><TAB>
p4_completion.bash#1 p4_completion.bash#3 p4_completion.bash#have p4_completion.bash#none
p4_completion.bash#2 p4_completion.bash#4 p4_completion.bash#head
$ p4 filelog p4_completion.bash#he|<TAB>
$ p4 filelog p4_completion.bash#head|
Notice that the cursor will not end the completion with a space. This is intentional, because
the user might want to add a comma to create a range, e.g. file#1,5
Commas in filerevs are not yet completed by p4_completion
Files
1
Comments
0
1
edited
0
added
0
deleted
•
p4_completion.bash#10
Loading...
Tip: Use
n
and
p
to cycle through the changes.