-
Notifications
You must be signed in to change notification settings - Fork 35
Fill remaining width with column #141
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
Comments
I see how this can be useful for styling. All current constraints have strict rules such as "use an exact width", "at least X and/or at most Y", "hide it". The behavior you're asking for is a "do as usual, but in case something's left put it inside of this column". Additionally, having this as a constraint would prevent usage of any of the other constraints, which doesn't make a lot of sense. One other thing that needs to be discussed is how should this behave in case multiple columns have this attribute. I assume it should then be split equally upon all those columns? My proposal on how to implement this, would actually be to add a new property on Feel free to start working on this, this is something that would work for comfy-table :) |
For a particular column? Yeah, that's correct. (I'm imagining a feature similar to TeX's "fill widths".)
OK, thanks! |
Closed due to inactivity :) Feel free to ping for re-open if you're interested in working on this :) |
A detailed description of the feature you would like to see added.
I'd like a column constraint that lets me fill remaining width with a specific column. (Like
DynamicFullWidth
, but the remaining width is given to a specific column rather than spread out.)Explain your usecase of the requested feature
I have a table that displays change requests. It includes the title, the change number, the author, updated timestamp, and status information. I'd like the remaining width to be dedicated to the change title.
I want this because subsequent queries will have different widths because the change titles have different lengths. If I could fill the remaining space with the titles, all the tables would have the same width. (Or much more consistent widths.)
The text was updated successfully, but these errors were encountered: