New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker-compose plugin service names only if container exists ? #10636
Comments
Seems that taking this approach fixed it for me. ohmyzsh/plugins/docker-compose/_docker-compose Lines 21 to 26 in 11a87ea
Change from Perhaps this could be released? |
We bundled the upstream completion, but it looks like they removed it in v2 and it's still not ready. That is all to say that I'm ok with a unilateral change, as long as it doesn't introduce breaking changes. Are you willing to make a PR? |
@mcornella I could but it's not as easy as it looks actually. Having had second look on this we have some parts that rely on
ohmyzsh/plugins/docker-compose/_docker-compose Lines 40 to 44 in 11a87ea
Which is impossible to filter with
So I could make PR but we need to decide if we want to go this direction where all service based completion is taken from |
@mcornella Submitted what worked for me: #10638 |
A downside of only use the services from docker-compose down && docker-compose up --build -d && docker-compose logs -f service-1 For the final part, I would be unable to auto-complete it, because at the moment of writing the command, the service Is it possible to change this behaviour with configuration? |
This is not true. Even if using |
Apologies if I'm misunderstanding, but in your description, it says:
This list does not include the |
Doing cleanup of old issues. I disagree with my previous statement that we could fix this on our side. Let's continue the conversation on the upstream project. |
Describe the bug
with:
docker-compose up <tab>
docker-compose run <tab>
There seem to be no autocomplete without services actually running (after
docker-compose up
). Is that how the autocomplete is suppose to work? Sometimes it's needed to get autocomplete for services when nothing is actually running so that for example one could choose which services toup
.Steps to reproduce
docker-compose run <tab>
without any services running.Expected behavior
docker-compose run/up <tab>
without services running should autocomplete services.Screenshots and recordings
No response
OS / Linux distribution
Linux adam-work 5.15.13-arch1-1 #1 SMP PREEMPT Wed, 05 Jan 2022 16:20:59 +0000 x86_64 GNU/Linux
Zsh version
zsh 5.8 (x86_64-pc-linux-gnu)
Terminal emulator
kitty 0.24.1 created by Kovid Goyal
If using WSL on Windows, which version of WSL
No response
Additional context
The text was updated successfully, but these errors were encountered: