-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Is it possible to change the color of the input beyond certain length? #359
Comments
Hi @SBoudrias, does this sound feasible? If yes, I can work on a PR, with little guidance. |
Everything is possible, the question is more what would be the API exposed to the user? |
I guess the API remains the same, if optional May be I am over-simplifying, you could suggest better. |
I think that makes sense. PR welcomed |
@sarbbottam, @SBoudrias, any progress on this? If not, I might look into it. |
@pudgereyem i've been meaning to make a contribution around this for a while, but have never found time to start looking into it. it would be hugely helpful to me if you end up getting it working. if any help testing it out would be helpful, i may be able to find some time for that. |
@SBoudrias i know this is a pretty dated issue at this point, but i tried to take a stab as this a couple of nights ago and had some trouble figuring out how the tests are intended to run. https://github.com/SBoudrias/Inquirer.js/blob/master/test/specs/prompts/input.js looks like an appropriate place to try to test drive this behavior, but the changes that i've made there don't appear to be executed when i run |
@travi no magic around tests, the |
i didnt think it looked like anything more than a simple config for the tests. however, even with my changes stashed, any i saw the
so after switching with |
@travi just checked it out myself, and you're right some tests weren't running. I think a version update changed how mocha treated the glob pattern and drop all test in nested folders (but kept travis green, so it went unnoticed.) It's fixed on latest master. |
Glad to hear I'm not crazy at least. Thanks for taking a look and getting it taken care of. Hopefully that clears the way to getting this feature knocked out. With any luck I'll get a PR to you within the week so we can finalize implementation details. |
Is it possible to change the color of the input beyond certain length?
Somthing like
May be something like:
and
Inquirer.js/lib/prompts/input.js#L55-L70 can invoke this
transformer function
Thanks!
The text was updated successfully, but these errors were encountered: