rich
rich copied to clipboard
Adds `expand` Parameter to `track` `wrap_file` `open` in `rich.progress` for Full-Width Progress Bars
Type of changes
- [ ] Bug fix
- [x] New feature
- [ ] Documentation / docstrings
- [ ] Tests
- [ ] Other
Checklist
- [x] I've run the latest black with default args on new code.
- [x] I've updated CHANGELOG.md and CONTRIBUTORS.md where appropriate.
- [ ] I've added tests for new code.
- [x] I accept that @willmcgugan may be pedantic in the code review.
Description
Adds expand parameter to rich.progress.track rich.progress.wrap_file rich.progress.open function as mentioned in #3588.
When expand = True, it will expand the progress display to fill the width of the console. Defaults to False.
This is very useful, especially when we need to unify the width of all renderable components (e.g., Panel, Table) to match the console width.
Great job! Looking forward to this being merged into main branch asap.
Any news on this? Thanks!