Replies: 1 comment 5 replies
-
Excellent @1a7r0ch3. thank you! |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently when displaying a table in sc-im, each row occupies only one terminal line.
It would be interesting to have a mechanism allowing a cell content to be displayed over several lines; of course its entire row must be adjusted in height accordingly.
In particular, when a cell content is too long to fit within its column width, it is currently either displayed with stars "***" to indicate that it cannot fit, or its content overlaps the cells on its rights if the
overlap
option is set.By allowing rows with height spanning over several terminal lines, one can imagine to wrap around long cell content.
Illustration :
Moreover, this would allow (with careful escaping and parsing rules) to deal with cell contents actually containing newlines ; see for instance issue #410.
Now I have no idea how hard it would be to achieve this. Also some design decision must be made, for instance regarding what to do with the vertical position of "short content" (I guess similar mechanism than horizontal justification can be used, defaulting to vertical centering), or what to do in case of
autojus
of column width (I guess an option setting a "maximum autoadjust width" could be used).Beta Was this translation helpful? Give feedback.
All reactions