-
Notifications
You must be signed in to change notification settings - Fork 26
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
feat: configure node open state symbols #19
Conversation
To handle different width symbols, we could restrict I also think we could default Maybe we could even shift completely from using Personally, I think moving from |
I think allowing to have Also its one less creation of a String. When redrawing often its definitely a benefit of being a bit more efficient when possible. Guess if someone wants equal sized values then they can just use the same length themselves without some check in there. Side Note: The code is closely matched to the List Widget which also uses |
Good point. I think both ideas, |
QQ: what's left to do on this (asking as it probably should be done before moving tui-rs-tree-widget into ratatui. Is it making some decisions or actual changes / implementation? |
Currently the variables are available in the code but there is no way to set them as a user of the lib. Other than that it’s done I think. |
This is a base implementation for configuration of symbols which works but isn't finished yet.
closes #17
The current state raises some questions:
Some(…)
and the other methods default to None so overriding and setting it will always be something afterwards. Change the other methods to acceptOption<&str>
too?