-
-
Notifications
You must be signed in to change notification settings - Fork 26
Add flags_without_count option to show git status icons without counts #129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@copilot look at the comment I made below the issue description in #129 Here are added requirements for this issue:
|
Co-authored-by: arl <[email protected]>
Co-authored-by: arl <[email protected]>
... All requirements have been addressed in commit 2445860: ✅ Unit tests: Added The |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job, see the unique comment and were good to go! 🚀
README.md
Outdated
@@ -272,6 +272,7 @@ This is the list of additional configuration `options`: | |||
| `hide_clean` | Hides the clean flag entirely | `false` | | |||
| `swap_divergence` | Swaps order of behind & ahead upstream counts | `false` | | |||
| `divergence_space` | Add a space between behind & ahead upstream counts | `false` | | |||
| `flags_without_count` | Show flags symbols without counts | `false` | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this option name is wider than the others, please realign the markdown table as I want the readme to be nice even when read without rendered as markdown.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed the markdown table alignment in commit 6af350e. The table now has consistent spacing to accommodate the wider flags_without_count
option name.
Co-authored-by: arl <[email protected]>
This PR adds a new configuration option
flags_without_count
that allows users to display git status symbols without their numerical counts, saving space while still providing visual status indicators.Changes
flags_without_count
boolean option to the configuration (defaults tofalse
for backward compatibility)flags()
function to conditionally exclude counts when the option is enabled.gitmux.yml
with proper documentationTestFlagsWithoutCount()
with multiple test cases covering various scenariosBehavior
Before (default behavior):
After (with
flags_without_count: true
):The feature works with all git status flags:
●
(staged files)✚
(modified files)…
(untracked files)⚑
(stashed changes)✖
(conflicts)✔
(clean - unaffected as it never shows counts)Usage
Add to your
.gitmux.yml
configuration:This change is fully backward compatible - existing configurations will continue to work unchanged since the option defaults to
false
.Fixes #124.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.