Skip to content

feat(explorer): open_on_empty config option - #520

Open
tkr-sh wants to merge 3 commits into
esmuellert:mainfrom
tkr-sh:main
Open

feat(explorer): open_on_empty config option#520
tkr-sh wants to merge 3 commits into
esmuellert:mainfrom
tkr-sh:main

Conversation

@tkr-sh

@tkr-sh tkr-sh commented Aug 16, 2026

Copy link
Copy Markdown

By default, :CodeDiff bails out with "No changes to show" when the working tree is clean. That's unfortunate: there may be no changes now, but there could be in the future.

With explorer.open_on_empty = true, the explorer still opens with empty group headers, empty file list, and the welcome banner in the diff panes. This matches the state already shown when all staged changes are committed and nothing remains. Defaults to false, so existing behavior is unchanged.

tkr-sh added 3 commits August 16, 2026 20:56
By default, :CodeDiff bails out with "No changes to show" when the
working tree is clean. That's unfortunate: there may be no changes now,
but there could be in the future. With `explorer.open_on_empty = true`,
the explorer still opens with empty group headers, empty file list, and
the welcome banner in the diff panes. This matches the state already
shown when all staged changes are committed and nothing remains.
Defaults to false, so existing behavior is unchanged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant