fix(canola-git): preserve git_status column width in clean repos #54
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
barrettruth/canola-collection!54
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/git-status-empty-column-width"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The git_status column currently collapses entirely when a repository is clean or when no visible entries have a git status. That makes the listing shift horizontally as repositories move between clean and dirty states.
Solution
Opt git_status into canola.nvim's all_empty_width hook so it reserves width 1 in compact and symbol modes and width 2 in porcelain mode whenever the current directory is part of a git repository. Non-git directories still collapse the column entirely, and the new behavior is covered with focused canola-git tests.
closes #39