gradle / gradle-completion

Gradle tab completion for bash and zsh
MIT License
1.02k stars 131 forks source link

Default subproject for implicit completion #46

Open paour opened 6 years ago

paour commented 6 years ago

The GRADLE_COMPLETION_UNQUALIFIED_TASKS option causes the completion script to go over all subprojects, potentially pulling in too many tasks. Android apps generally always use :app: for the main subproject, could another env var direct the script to autocomplete for that by default?

eriwen commented 6 years ago

Yes, I'd be very happy to consider a PR here especially that makes completion better for Android projects. Is that something you'd be willing to submit?

paour commented 6 years ago

With my bash skills, you'd have to rewrite whatever I contributed ;-).

What I had in mind was not necessarily Android-specific: the variable could be set to whatever the "usual" default subproject the developer uses.

eriwen commented 6 years ago

Okay, thanks for the clarification. That is helpful.

mwos-sl commented 4 years ago

I think that could be easily handled by: https://github.com/gradle/gradle-completion/issues/88 I've already implemented such task. It can be easily extended. I can share the code. To apply it, this PR needs to be accepted: https://github.com/gradle/gradle-completion/pull/89