Releases: uutils/uutils-term-grid
v0.7.0
We're happy to announce version 0.7.0 with tabs and a new layout!
Breaking changes
We have a new layout algorithm, which should be a bit faster and create more balanced layouts. We think this is also a bit more compatible with, for instance, GNU ls. Please let us know if this algorithm is not right for your purpose. This change was contributed by @emar-kar in #48.
New features
This release introduces a new Filling::Tabs
variant for printing whitespace with tabs instead of spaces, while maintaining proper alignment (depending on the set tab size). This feature was contributed by @emar-kar in #46.
v0.6
New features
- Expose the
Grid::column_widths
method to access the number of columns and their widths.
v0.5
New features:
- ANSI hyperlinks are now ignored automatically in the width calculation in #36
Fixes:
- allow the screen to be filled exactly and fix off by one errors by @tertsdiepraam in #34
Dependencies:
- Removed
textwrap
in favor of our ownansi-width
Full Changelog: v0.4...v0.5
v0.4
We're happy to announce uutils-term-grid
version 0.4!
In this release, we move further away from the rust-term-grid
origins of this crate and tailor the API more to our needs. This release therefore breaks the entire API. If you're using this library, we hope this doesn't inconvenience you too much and that the improvement is clear. Anecdotally, we have seen that using this version of the library is much simpler than 0.3.
The important changes are:
- The
fit_into_columns
functionality has been removed. - ANSI codes are now handled correctly in the width calculation.
- Cells no longer have to be added to a grid one by one, but a grid is constructed with a
Vec
of&str
directly. - The
width
of the grid can be specified inGridOptions
. - A
Grid
now implementsDisplay
.