feat(explorer): Virtual line spacer between Conflict, Staged and Unstaged groups - #398
Open
kikefdezl wants to merge 1 commit into
Open
feat(explorer): Virtual line spacer between Conflict, Staged and Unstaged groups#398kikefdezl wants to merge 1 commit into
Conflict, Staged and Unstaged groups#398kikefdezl wants to merge 1 commit into
Conversation
|
What if only "Staged Changes" is present? |
Author
If the |
Conflict, Staged and Unstaged groups
kikefdezl
force-pushed
the
main
branch
5 times, most recently
from
August 3, 2026 08:03
85d0066 to
17c1e07
Compare
Author
|
I made some modifications, the changes are slimmer now. |
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.
Description
When the explorer displays dozens of files, it is easy to lose track of the boundaries between Staged, Unstaged, and Conflict groups, leading to accidental staging or unstaging of the wrong files.
This PR introduces a single-line virtual spacer above group nodes to make it instantly clear where one section ends and another begins.
Implementation Details
This is handled7 at render time.
line_spacerstable is generated duringTree:render().groupnode that isn't the first visible line in the buffer gets a margin of1.virt_lines_above = trueextmarks.Configuration / Opt-in
This PR applies the visual separator universally without exposing new configuration options, as it feels like a sensible and universally beneficial default for the UI. However, if you prefer this to be configurable or opt-in, I would be happy to update the PR to expose a setting for it!