Change | User | Description | Committed |
---|---|---|---|
18761 | zachwhaley | Complete words with the colon character Usually : is treated like a separator and can c...ause completion to fail, like if a client has a colon in its name, p4 client would complete up to the colon and then start completing file names. This change prevents this by making the word up to the colon a prefix for word completion « |
9 years ago |
18754 | zachwhaley | Use the new __p4_complete prefix parameter in __p4_compflags | 9 years ago |
18753 | zachwhaley | Fix spacing in __p4_directories | 9 years ago |
18752 | zachwhaley | Add completion for files with revision specifiers This should allow commands that use f...ile 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 « |
9 years ago |
18751 | zachwhaley | Use bash-completion to initialize cur prev, words, and cword This function comes from t...he bash-completion script provided by debian, I think. See: http://bash-completion.alioth.debian.org « |
9 years ago |
18750 | zachwhaley | Fix depot(s) competion 'p4 depot' has a -t option to specify the type of depot 'p4 depot...s' takes no arguments, so should not complete anything « |
9 years ago |
18749 | zachwhaley | Check that $cmd has a function | 9 years ago |
18748 | zachwhaley | Use local variables instead of COMP_CWORD and COMP_WORDS | 9 years ago |
18747 | zachwhaley | Replace a sed call with native bash | 9 years ago |
18715 | zachwhaley | Add more context aware option generation If a different user is set via a -u option, th...en completion should be aware of that option and cater the suggestions with that option in mind, like completing only changelists from that user when the -e (filter changelist) option is used. Contextual options are currently client, user, stream, and change status. i.e. if an option can set a designated client, user, stream, or status, the rest completion should become aware of that. Add missing -s option to p4 unshelve Fix spelling error « |
9 years ago |
18714 | zachwhaley | Update commands for Perforce 2015.2 Style change Update global options for Perforce... 2015.2 Replace long switch statement with much simpler eval call Add option flags These are for commands like 'p4 diff' that can add more than one flag to an option e.g. p4 diff -dub, which outputs a diff in unified format and ignores whitespace changes « |
9 years ago |
12543 | zachwhaley | Copied updates from GitHub, if you want to see granular commits visit https://github.com/z...achwhaley/p4_completion/commits/master « | 10 years ago |
8797 | zachwhaley | Added an ignore file. | 11 years ago |
8792 | zachwhaley | I think this is going to get clobbered later. Anyway, this is a bash completion sc...ript for Perforce CLI. « |
11 years ago |