Closed gotoh closed 3 months ago
@gotoh Do you use mercurial?
The red color here comes from cmder-powerline-prompt/powerline_hg.lua (cmder-powerline-prompt was the starting point for the source control modules in clink-flex-prompt).
I don't use mercurial, and I didn't know if maybe red is considered appropriate by mercurial users. So I figured I would leave the color as red until/unless someone who actually uses mercurial indicates that the mercurial prompt should instead behave like the other source control prompts.
Yes, I am (was) mercurial user on Windows. I attach a screen capture in command prompt. It shows 4 status (modified, added, removed, unknown). I suppose no reason that "red" is good fo "not clean" (dirty) state in hg.
BTW, I'm using patched 'scm' module (not 'git' and 'hg' module) showing modification / unknown count with hg / svn like git. Attachced capture is an display example. I suppose it is better to use common color scheme for any vcs backend.
This is a capture in Cmder using hg and svn with flexprompt and patched 'scm' module. (note that color scheme is "Babun" and it is different to cmd.exe)
Thanks for the confirmation and screen shots.
In what way is your scm module patched? Is the patch something that might be worth sharing?
OK, I've made a PR #66. Please note that this patch is experimental and is very young. And I haven't given much thought to what kind of modification is appropriate in totaly regarding with hg module and svn module.
Oh my. Thank you for sharing the PR. The problem is due to a typo bug -- see review comments in the PR for details.
Fixed by commits:
I think
vcs_dirty
is a more appropriate color for thedirty
state inhg_colors
. https://github.com/chrisant996/clink-flex-prompt/blob/b5ec3c2ccb34051852c11fa2101c594e85c06954/flexprompt_modules.lua#L1154