v0.22.1-alpha.2
Pre-release
Pre-release
github-actions
released this
19 Aug 13:21
·
745 commits
to main
since this release
v0.22.1-alpha.2 - 2023-08-19
Features
-
(list) Add option to always allocate the "selection" column width (#394)
(4d70169)* feat(list): add option to always allocate the "selection" column width Before this option was available, selecting a item in a list when nothing was selected previously made the row layout change (the same applies to unselecting) by adding the width of the "highlight symbol" in the front of the list, this option allows to configure this behavior. * style: change "highlight_spacing" doc comment to use inline code-block for reference
-
(table) Add support for line alignment in the table widget (#392)
(7748720)* feat(table): enforce line alignment in table render * test(table): add table alignment render test
Bug Fixes
-
(layout) Don't leave gaps between chunks (#408)
(56455e0)Previously the layout used the floor of the calculated start and width as the value to use for the split Rects. This resulted in gaps between the split rects. This change modifies the layout to round to the nearest column instead of taking the floor of the start and width. This results in the start and end of each rect being rounded the same way and being strictly adjacent without gaps. Because there is a required constraint that ensures that the last end is equal to the area end, there is no longer the need to fixup the last item width when the fill (as e.g. width = x.99 now rounds to x+1 not x). The colors example has been updated to use Ratio(1, 8) instead of Percentage(13), as this now renders without gaps for all possible sizes, whereas previously it would have left odd gaps between columns.
-
(layout) Ensure left <= right (#410)
(f4ed3b7)The recent refactor missed the positive width constraint
-
(release) Fix the last tag retrieval for alpha releases (#416)
(b6b2da5)
Refactor
-
(layout) Simplify and doc split() (#405)
(de25de0)* test(layout): add tests for split() * refactor(layout): simplify and doc split() This is mainly a reduction in density of the code with a goal of improving mainatainability so that the algorithm is clear.
-
(layout) Simplify split() function (#396)
(5195099)Removes some unnecessary code and makes the function more readable. Instead of creating a temporary result and mutating it, we just create the result directly from the list of changes.
Documentation
-
(examples) Show layout constraints (#393)
(10dbd6f)Shows the way that layout constraints interact visually ![example](https://vhs.charm.sh/vhs-1ZNoNLNlLtkJXpgg9nCV5e.gif)
Testing
Miscellaneous Tasks
-
(codecov) Fix yaml syntax (#407)
(ea48af1)a yaml file cannot contain tabs outside of strings
-
(uncategorized) Use vhs to create demo.gif (#390)
(8c55158)The bug that prevented braille rendering is fixed, so switch to VHS for rendering the demo gif ![Demo of Ratatui](https://vhs.charm.sh/vhs-tF0QbuPbtHgUeG0sTVgFr.gif)