Textualize / rich-cli

Rich-cli is a command line toolbox for fancy output in the terminal
https://www.textualize.io
MIT License
2.99k stars 77 forks source link

Feature request: horizontal padding #86

Closed treyhunner closed 1 year ago

treyhunner commented 1 year ago

I'd like to control the horizontal and vertical padding independently.

I'm using rich-cli to display some markdown nicely within a tmux window (like a slide show in a sense) and it works great for this use when I use it with --pager and specify --padding to give it a little breathing room.

My issue is that I often want 2-3 characters of padding horizontally but 0-1 characters of padding vertically.

treyhunner commented 1 year ago

I dug in the code a bit (though I could have found this by checking help!) and discovered that this feature is already supported.

rich file.md --pager --padding 0,3 will use 0 vertical padding and 3 horizontal.