feat(context_bar): add configurable filled_char and empty_char#155
Open
HotThoughts wants to merge 1 commit intostephenleo:mainfrom
Open
feat(context_bar): add configurable filled_char and empty_char#155HotThoughts wants to merge 1 commit intostephenleo:mainfrom
HotThoughts wants to merge 1 commit intostephenleo:mainfrom
Conversation
Allow users to customize the characters used to render the context bar progress indicator via `filled_char` and `empty_char` config options. Defaults remain `█` (filled) and `░` (empty) for backwards compatibility. Example config for circle-style progress: [cship.context_bar] filled_char = "●" empty_char = "○" Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Summary
filled_charandempty_charfields to[cship.context_bar]config█/░for full backwards compatibilityMotivation
The progress bar characters were hardcoded, making it impossible to customize the bar style. A common request is circle/dot-style indicators:
which renders as
●●●●○○○○○○40%instead of████░░░░░░40%.Changes
src/config.rs: addedfilled_char: Option<String>andempty_char: Option<String>toContextBarConfigsrc/modules/context_bar.rs: read the new fields with fallback to defaults; updated doc commentTest plan
cargo test)test_context_bar_custom_filled_and_empty_charsverifies circle renderingtest_context_bar_only_filled_char_overriddenverifies partial override falls back to default empty char🤖 Generated with Claude Code