Feat: add config option to show Projects/Services outside a compose directory (#800) - #827
Open
ayoub3bidi wants to merge 1 commit into
Open
Feat: add config option to show Projects/Services outside a compose directory (#800)#827ayoub3bidi wants to merge 1 commit into
ayoub3bidi wants to merge 1 commit into
Conversation
ayoub3bidi
force-pushed
the
feat/force-project-view
branch
from
August 3, 2026 16:15
9b90491 to
8e7c7ea
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Since v0.25.2, Projects and Services panels are hidden when lazydocker is not launched from a docker-compose directory (unless
-pis passed). That broke workflows that start lazydocker from anywhere (for example from a status bar) and still want to browse all running compose projects.This PR adds an opt-in
gui.forceProjectViewconfig flag so those panels can be shown again without changing the default behavior.Fixes #800
What was done
gui.forceProjectView(ForceProjectView) to user config, defaultfalseIsProjectScoped()soforceProjectView: trueshows Projects/Services and enables project filtering when outside a compose directorydocs/Config.mdTestIsProjectScopedcoverage for the new flagTechnical Details
Panel visibility already keys off
IsProjectScoped()(not the rawInDockerComposeProjectflag alone). This change extends that predicate instead of forcingInDockerComposeProject = truewhen no local compose file exists.Keeping
InDockerComposeProjecttruthful avoids:docker compose config --servicescalls on every refresh outside a compose directoryLocalProjectNameWith
forceProjectViewenabled, projects and services are discovered from running container compose labels (the same path already used for multi-project discovery).Notes
false; no behavior change for existing users