rich icon indicating copy to clipboard operation
rich copied to clipboard

Adds `expand` Parameter to `track` `wrap_file` `open` in `rich.progress` for Full-Width Progress Bars

Open PeiPei233 opened this issue 1 year ago • 3 comments

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.

PeiPei233 avatar Dec 16 '24 07:12 PeiPei233

Great job! Looking forward to this being merged into main branch asap.

abmfy avatar Dec 16 '24 12:12 abmfy

Any news on this? Thanks!

peacefulotter avatar Jun 10 '25 08:06 peacefulotter