-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a ColumnWidth.Contents
#109
Comments
It sounds like what you're asking for is already how |
Actually, I tried I also tried to achieve that via |
I think I'd want to implement that as something like For now, the easiest way to get what you want is to probably pick a width for those columns you want to keep and use |
Yeah, that's what I did 👍🏻 |
After working on the design some more, I ended up generalizing all the width behaviors into a new You can get the behavior asked for in this issue with |
Thanks for this! However, could we get a constant for the highest priority now? It seems a bit unclean to hard-code it to 4 here. |
On a related note, maybe it makes sense to turn |
Use a new more flexible column width option, see [1]. [1]: ajalt/mordant#109 (comment) Signed-off-by: Sebastian Schuberth <[email protected]>
Use a new more flexible column width option, see [1]. [1]: ajalt/mordant#109 (comment) Signed-off-by: Sebastian Schuberth <[email protected]>
Use a new more flexible column width option, see [1]. [1]: ajalt/mordant#109 (comment) Signed-off-by: Sebastian Schuberth <[email protected]>
Use a new more flexible column width option, see [1]. [1]: ajalt/mordant#109 (comment) Signed-off-by: Sebastian Schuberth <[email protected]>
In the next major version I'll get rid of all the subclasses and have them all be instances of |
I'm proposing to add a
Contents
mode toColumnWidth
that works similar toFixed
, but automatically sets thewidth
to the maximum length of text in any row of that column.My use-case is very much related to #13: The cell contents of the grid I'm using get truncated as the terminal width is detected incorrectly, see #67 (comment). So I'd like to force the contents of some important cells to be fully shown nonetheless.
The text was updated successfully, but these errors were encountered: