Bottom toolbar format string for customization#1655
Merged
rolandwalker merged 1 commit intomainfrom Feb 28, 2026
Merged
Conversation
No correctness or security defects stood out in the implementation itself. |
4829522 to
4e7d405
Compare
scottnemes
approved these changes
Feb 28, 2026
Contributor
|
Verified toolbar customization works as expected |
4e7d405 to
6e31561
Compare
Like the prompt, the bottom toolbar can be customized, using the same format strings, with a special format string \B to represent the standard toolbar (in the first position only). When \B is included the user's customizations appear on the second line. When \B is not included, the user may override the toolbar completely. Transient notices will still appear to the right of the user's format. Like the prompt, both a CLI option --toolbar and a ~/.myclirc option are provided, with the CLI option taking precedence.
6e31561 to
ead41c3
Compare
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
Like the prompt, the bottom toolbar can be customized, using the same format strings, with a special format string
\Bto represent the standard toolbar (in the first position only).When
\Bis included the user's customizations appear on the second line.When
\Bis not included, the user may override the toolbar completely. Transient notices will still appear to the right of the user's format.Like the prompt, both a CLI option
--toolbarand a~/.myclircoption are provided, with the CLI option taking precedence.Motivation: useful information takes up repeated space in the prompt, but needs to be displayed only once in the toolbar.
Example:
Checklist
changelog.mdfile.AUTHORSfile (or it's already there).