You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While using Live, I noticed that the current vertical_overflow modes ("crop", "ellipsis", "visible") always truncate lines from the bottom when the renderable exceeds the terminal height.
In some scenarios it would be more useful to show the most recent lines and crop from the top instead.
I’d like to propose adding two additional modes to complement the existing ones:
"crop_top" – show only the last N lines that fit within the terminal height.
"ellipsis_top" – same as above, but replace the first visible line with an ellipsis (…).
I’d be happy to contribute this feature and open a PR if the idea sounds reasonable.
Thanks for the great work on Rich — it’s been an invaluable tool for building polished terminal UIs.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
While using
Live, I noticed that the currentvertical_overflowmodes ("crop", "ellipsis", "visible") always truncate lines from the bottom when the renderable exceeds the terminal height.In some scenarios it would be more useful to show the most recent lines and crop from the top instead.
I’d like to propose adding two additional modes to complement the existing ones:
I’d be happy to contribute this feature and open a PR if the idea sounds reasonable.
Thanks for the great work on Rich — it’s been an invaluable tool for building polished terminal UIs.
Nadav
Beta Was this translation helpful? Give feedback.
All reactions