-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
[Feature] Indicate whether the git branch is tracked #2361
Comments
I've implemented this. If you update powerlevel10k, run If many people complain or get confused by the new icon, I'll revert the change. Note that you can achieve this by editing - (( VCS_STATUS_COMMITS_BEHIND )) && res+=" ${clean}⇣${VCS_STATUS_COMMITS_BEHIND}"
- (( VCS_STATUS_COMMITS_AHEAD && !VCS_STATUS_COMMITS_BEHIND )) && res+=" "
- (( VCS_STATUS_COMMITS_AHEAD )) && res+="${clean}⇡${VCS_STATUS_COMMITS_AHEAD}"
+ if (( VCS_STATUS_COMMITS_AHEAD || VCS_STATUS_COMMITS_BEHIND )); then
+ (( VCS_STATUS_COMMITS_BEHIND )) && res+=" ${clean}⇣${VCS_STATUS_COMMITS_BEHIND}"
+ (( VCS_STATUS_COMMITS_AHEAD && !VCS_STATUS_COMMITS_BEHIND )) && res+=" "
+ (( VCS_STATUS_COMMITS_AHEAD )) && res+="${clean}⇡${VCS_STATUS_COMMITS_AHEAD}"
+ elif [[ -n $VCS_STATUS_REMOTE_BRANCH ]]; then
+ res+=" ${clean}≡"
+ fi You don't need to update powerlevel10k or run |
@gozssky See #2377 (comment). |
…mote #2361 requested an indicator for up to date branches, which was added in 20323d6. Since then, 3 users complained about the new indicator: - #2377 - #2380 - #2361 (comment) On one hand we have one request to add a feature. On the other hand we have three complaints about the feature's existence. The feature is going away.
I've received 3 complaints and reverted the change. Note that the original commit and the revert commit only affect the content of configs generated by the configuration wizard. Neither of these commits affects the behavior of powerlevel10k with a fixed config. Thus, if you want to see/hide |
Can this be configurable (enable/disable) in the |
Only important options make their way into the configuration wizard. An option that hardly makes a difference isn't worth everyone's time when they are running the wizard. It is perfectly suitable for customization through editing |
…mote romkatv/powerlevel10k#2361 requested an indicator for up to date branches, which was added in 20323d6. Since then, 3 users complained about the new indicator: - romkatv/powerlevel10k#2377 - romkatv/powerlevel10k#2380 - romkatv/powerlevel10k#2361 (comment) On one hand we have one request to add a feature. On the other hand we have three complaints about the feature's existence. The feature is going away.
This is a request to add an indicator of whether the git branch is tracked or not. It's often a very useful piece of information to have at a glance.
In Oh-My-Posh plugin for PowerShell, the git prompt indicated whether the branch is tracked next to the branch name. So, for an untracked branch, it would just show the branch name, and for a tracked branch that is up to date with the remote, it would show the
≡
symbol. For tracked branches that are ahead/behind it would do the same as Powerlevel does currently with the up/down arrow symbols.The text was updated successfully, but these errors were encountered: