Rich-CLI
Dev tools
terminal output renderer
SHOW HN2022
126points
33comments
#488of 2,570 in 2022
Top 19%of 2022 by points
How HN took it
MixedNo clear lean
10 positive, 4 neutral or asking, 2 mixed, 3 critical, out of 19 comments about the project. Thread score +0.28.
Idea: 3 for, 3 againstDesign: 1 for, 0 against
The thread, comment by comment
Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.
positive neutral or mixed critical about another commenter or something else the maker
What HN said
What people liked
Useful for scripts and replacing cat
From 2 comments
I really like the potential this has to add more compelling output to simple shell scripts: ``` #!/bin/bash rich "Starting process" --rule --rule-style "red" # ... do some stuff…
simonw on HNThis is great as a general replacement for the `cat` command, especially with the `-n` argument to add line numbers.
amanzi on HN
Fans of the Rich library
From 3 comments
Bro, you are a Python GOD! I been just loving everything about Rich since I discovered it, and your other Python related tools have been fantastic as well. Permanent parts of my…
blooalien on HNI remember when you first shared rich. It was so cool. It's been great watching your output increase so quickly Will. Thanks for all the hard work. Does this support paging? I…
stonecharioteer on HNThanks Will for creating Rich. I'm also a big fan of Rich. Are there any plans to make it easy to generate the Rich tables from the command line? Such as from CSV, TSV, JSON/L,…
leonim on HN
Objections
Overlaps with existing tools like bat and tqdm
From 2 comments
Looks similar to bat: https://github.com/sharkdp/bat
chme on HNtqdm already does this. It’s also a python package. https://tqdm.github.io/docs/cli/
pletnes on HN
Pipes lose syntax highlighting without a pager
From 1 comment
One thing that may be nice is a pager mode. If you feed into more or less with a pipe you loose the syntax highlight.
jpm48 on HN
Requests
Built-in pager
From 2 comments
I remember when you first shared rich. It was so cool. It's been great watching your output increase so quickly Will. Thanks for all the hard work. Does this support paging? I…
stonecharioteer on HNOne thing that may be nice is a pager mode. If you feed into more or less with a pipe you loose the syntax highlight.
jpm48 on HN
Git diff rendering
From 1 comment
Can it render git diffs / git difftool?
pletnes on HN
Progress bar support
From 1 comment
Progress bar support would be really interesting - providing a neat way to add progress bars to shell scripts that do a bunch of work. Not sure how to go about designing a CLI…
simonw on HN
RST file support
From 1 comment
I remember when you first shared rich. It was so cool. It's been great watching your output increase so quickly Will. Thanks for all the hard work. Does this support paging? I…
stonecharioteer on HN
Questions
How to add a newline in print mode
From 1 comment
How do you add a new line? I tried $ rich --print "\n hello world" but it just returned \n hello world Also, where can I find the list of emoji and the correspondent…
baggiponte on HN
Tab completion and emoji list
From 2 comments
How do you add a new line? I tried $ rich --print "\n hello world" but it just returned \n hello world Also, where can I find the list of emoji and the correspondent…
baggiponte on HNThat's beautiful! Maybe adding tab completions would be useful? For example: $ rich "hello world" -p -a <TAB> ... Where "..." is all the possible values that can be taken in.
baggiponte on HN
Alternatives named
bat
From 1 comment
Looks similar to bat: https://github.com/sharkdp/bat
chme on HN
tqdm
From 1 comment
tqdm already does this. It’s also a python package. https://tqdm.github.io/docs/cli/
pletnes on HN
pv
From 1 comment
Progress bar support would be really interesting - providing a neat way to add progress bars to shell scripts that do a bunch of work. Not sure how to go about designing a CLI…
simonw on HN