allow completion for several packages after --whitelist or --blacklist - #209
allow completion for several packages after --whitelist or --blacklist#209rhaschke wants to merge 4 commits into
Conversation
|
@rhaschke Is it possible to do this without having to search backwards through the arglist? |
|
If you have any idea to do it without backwards search, I'm curious to learn about it. |
|
Yeah, I know what you mean. Well, I like this enhancement, but haven't tried it out yet. In the future, it'd be cool to use that |
|
Yes, that's why I decided for a generic _last_option() function. |
|
I rewrote the auto-completion script to parse options from catkin's help output itself. |
Cool! How's the speed when doing that? Would it be worth pre-compiling any of the completion options? |
|
I didn't notice any performance issues. Try yourself ;-) |
|
Would it be better to have a mode where the |
|
Interesting link. It seems to provide pretty much everything needed. |
|
Several of these commits have been picked to master, I'm gonna close this for now. Please open a new pr if there are still changes that need to be made. |
|
@NikolausDemmel oh you might be right. |
|
@rhaschke The current state of this PR doesn't work on |
|
If there is a conflict of catkin_tools-completion.bash with zsh, then we should have a separate completion script for zsh, shouldn't we? As I don't use zsh, I cannot contribute here. |
|
Right now the completion works in both shells, |
This is an extension to #206 allowing bash completion not only for the first but for any number of packages after --whitelist or --blacklist.