-
Notifications
You must be signed in to change notification settings - Fork 137
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
Added index coloring functionality in menu #193
Conversation
… hope it works for you...
Hi @aregic, Thank you very much for the PR! |
Hi @aregic, Do you mind if I do some "rebase"? |
Still reviewing your PR, and saw that we already have a |
Perhaps we should fusion the use_color with index_color like, if index_color == nil then coloring of Menu indexes are disabled. If there's a color on it, we should coloring Menu indexes. What do you think about it? |
And also, what's your e-mail? So I could reset it on the commits. $ git config --global user.name "John Doe"
$ git config --global user.email [email protected] |
Sure, go on. I also don't mind if you use a separate branch for this feature until it is mature enough.
One hand, you should have as many features enables as possible, since users will just try it on default before deciding if it's worth looking into or not. I leave this decision to you.
Already working on it, will be in my next PR. To be honest the point of handing in such small change was to have feedback soon and to see if this project is even alive :)
I chose this name intentionally, since they do the same thing only in different classes. Nevertheless, the relation should be more clear then it is now: hard to figure out if HighLine.use_color overwrites the HighLine::Menu.use_color (currently it doesn't) or if it should. I might have an idea, see next answer.
I could add a about the email: well I just forgot to set it to something meaningful at first, but generally I just don't set it in fear of spam. I have made it public on my profile now. |
About the "on by default" argument, this gem is more than 10 years old, we could say that it has a "stable" code, so for this 2.0.0 release we're working on we have already broken some of the api but we do not want to introduce radical changes to the expected behaviour. This would break a lot of tests on others gems that depend on HighLine. So we prefer to be cautious. But I completely understand your point. Good to know you're working on improving the feature. We strongly favor small PRs. I have already "fixed" the "same method name" problem in my rebased branch, have a look a it. Now that you have a public e-mail your contributions will show up at your GitHub page. |
Closing this because it was merged in rebased branch at PR #194 |
A small step toward #100
Also, I have modified .gitignore to ignore vim swap files.