fix(canola-git): preserve git_status column width in clean repos #54

Merged
barrettruth merged 1 commit from fix/git-status-empty-column-width into main 2026-04-22 17:14:23 +00:00
barrettruth commented 2026-04-22 17:13:34 +00:00

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

## 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
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
barrettruth/canola-collection!54
No description provided.