-
Notifications
You must be signed in to change notification settings - Fork 7
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
Community Feedback #1
Comments
I like, it slaps, I use it to color stuff in my Gopher client that I'm currently working on. Haven't tried on Windows, but Linux experience is neat. |
Could the color and other styles be specified by argument? For example, bunt::println!("{$*}error:{/$}", Color::Red, ty); In that case I could calculate the color at runtime. |
@Berrysoft That's an interesting idea! I opened #21. Not sure if I can start working on it anytime soon, though. |
Thanks for the great library! I'm using your library for one of my projects, but I wanted leveled logging. So I cobbled together this crate, which provides some convenience macros ( Not really sure if this functionality is appropriate to make a PR for, since it's not a proper |
@Dophin2009 Thanks for letting me know. I think this functionality should certainly live outside of |
Custom 1-letter aliases would be nice. If you're only using a couple of color to highlight, it's less noisy and easy to remember let ty = "u32";
bunt::println!("{$bir}error:{/$} invalid value for type `{[blue]}`", ty); where each letter is an alias: bold, italic, red |
Another way to reduce noise to a minimum is to use "set on/off" logic instead of spans, so you wouldn't need to add closing tags |
And another noise reduction act could that would work only for single colors: replace |
And similar to supporting custom abbreviations you could have custom meaning of colors so that |
Do you have any opinions, complaints, suggestions, ideas, ... about this library or its syntax? Let me know :)
The text was updated successfully, but these errors were encountered: