You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To visualize the difference between different board types I want to be able to set colors of branches in lazygit's config by some pattern. For example:
Right now this config won't work for me, because it searches for IDS/<branch name> and ADE/<branch name> patterns in this case.
Your thoughts
I've implemented a dummy solution for my problem that can be seen here. Unfortunately, as you can see this will broke current logic of coloring. So, if lazygit's team is interested in this change, I would like to contribute. And in this case I need help with splitting logic for coloring of prefixes and patterns
The text was updated successfully, but these errors were encountered:
I think the solution would be to change these to be regular expressions. But yes, that would be a breaking change, so maybe it could become a new config (e.g. branchColorPatterns) which would override the other one if both are set, and then at some point we'd deprecate the old one. Or something like that.
Hello!
I've implemented this the way we discussed with @stefanhallerhere. Recently, I'm pretty busy, so no time to have a proper PR. So, maybe my work will be useful
Topic
On my work we name branches with the following pattern:
<jira board name>-<jira ticket number>-<branch name>
. For example:To visualize the difference between different board types I want to be able to set colors of branches in lazygit's config by some pattern. For example:
Right now this config won't work for me, because it searches for
IDS/<branch name>
andADE/<branch name>
patterns in this case.Your thoughts
I've implemented a dummy solution for my problem that can be seen here. Unfortunately, as you can see this will broke current logic of coloring. So, if lazygit's team is interested in this change, I would like to contribute. And in this case I need help with splitting logic for coloring of prefixes and patterns
The text was updated successfully, but these errors were encountered: