Adds last segment prompt char to powerline default theme #1449
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.
This PR adds the ability to have a multi-character prompt where part of the prompt shares a background color with the last segment. i.e
before
after
I'm not completely sold on the name of the variable. I would prefer a name that was more related just to the prompt and less to the segment, but couldn't think of a better name. Happy to discuss alternatives.
The feature is only added to the main theme - The Plain theme doesn't have a prompt char, and the Multi-line and Naked themes can just set the existing prompt char since there's no change in background color to try to account for. In fact, this PR explicitly disables the feature for Naked (as it uses the same prompt building method as default) since the result isn't that great.
-DF
[edit updated after picture to reflect changes made to color logic]