Releases: Textualize/rich-cli
Fixed warning messages
UserWarning Bug Fix
We fixed warning messages 💣 from newer versions of Click, caused by two options having the same short flag -j
:
UserWarning: The parameter -j is used more than once. Remove its duplicate as parameters should be unique.
The JSON display mode is now -J/--json
, and we keep -j/--emoji
as it was before. 😊
What's Changed
Mostly minor bug fixes and internal housekeeping.
- Fix duplicate options by @edrogers in #74
- We now require Python >= 3.9, so no more support for 3.7 and 3.8.
- Also, we are now PEP 621 compliant. Developers can use e.g. uv or pdm, and Poetry is not required. Fixed by @danielfleischer in #103
- Fix generic blend text by @DidierRLopes in #51
- Hard-code UTF-8 encoding for the input file by @olivierphi in #56
New Contributors
- @DidierRLopes made their first contribution in #51
- @olivierphi made their first contribution in #57
- @edrogers made their first contribution in #74
- @danielfleischer made their first contribution in #103
Full Changelog: v1.8.0...v1.8.1
Improved SVG export
New Jupyter Notebook support and SVG export
Rich-cli 1.7.0 Adds support for Jupyter notebook, with Markdown and syntax highlighting. The following video shows Notebook rendering in conjunction with the --pager
option.
Screen.Recording.2022-04-30.at.11.09.22.mov
Also in this release is a new --export-svg
option which will export anything you print via Rich as an SVG.
The following command will render the first 10 entries in a CSV and export a filed called deniro.svg
:
rich deniro.csv --export-svg deniro.svg --head 10
Here's what the output looks like in a browser:
v1.6.0
[1.6.0] 2022-04-23
Added
- Added space key to page down to pager
Changed
- Change how code blocks in markdown are rendered (remove border, adding padding)
- --theme and --lexer are now passed to Markdown and RST parsers
- Improved CSV guessing