This adds `FromIterator` impls for `Line` and `Text` that allow creating
`Line` and `Text` instances from iterators of `Span` and `Line`
instances, respectively.
let line = Line::from_iter(vec!["Hello".blue(), " world!".green()]);
let line: Line = iter::once("Hello".blue())
.chain(iter::once(" world!".green()))
.collect();
let text = Text::from_iter(vec!["The first line", "The second line"]);
let text: Text = iter::once("The first line")
.chain(iter::once("The second line"))
.collect();
Introduces scroll padding, which allows the api user to request that a certain number of ListItems be kept visible above and below the currently selected item while scrolling.
b5bdde0(text) Add FromIterator impls for Line and Text (#967)
This adds `FromIterator` impls for `Line` and `Text` that allow creating
`Line` and `Text` instances from iterators of `Span` and `Line`
instances, respectively.
</code></pre>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/ratatui-org/ratatui/commit/94f4547dcfe689bea4fa686c51b34e4df0c208f3"><code>94f4547</code></a> chore(deps): bump orhun/git-cliff-action from 2 to 3 (<a href="https://redirect.github.com/ratatui-org/ratatui/issues/972">#972</a>)</li>
<li><a href="https://github.com/ratatui-org/ratatui/commit/3a6b8808ed54f19e06c82f89f776c060304b1411"><code>3a6b880</code></a> chore(deps): update derive_builder requirement from 0.13.0 to 0.20.0 (<a href="https://redirect.github.com/ratatui-org/ratatui/issues/960">#960</a>)</li>
<li><a href="https://github.com/ratatui-org/ratatui/commit/1cff51193466f5a94d202b6233d56889eccf6d7b"><code>1cff511</code></a> feat(line): impl Styled for Line (<a href="https://redirect.github.com/ratatui-org/ratatui/issues/968">#968</a>)</li>
<li><a href="https://github.com/ratatui-org/ratatui/commit/b5bdde079e0e1eda98b9b1bbbba011b770e5b167"><code>b5bdde0</code></a> feat(text): add <code>FromIterator</code> impls for <code>Line</code> and <code>Text</code> (<a href="https://redirect.github.com/ratatui-org/ratatui/issues/967">#967</a>)</li>
<li><a href="https://github.com/ratatui-org/ratatui/commit/654949bb00b4522130642f9ad50ab4d9095d921b"><code>654949b</code></a> feat(list): Add Scroll Padding to Lists (<a href="https://redirect.github.com/ratatui-org/ratatui/issues/958">#958</a>)</li>
<li><a href="https://github.com/ratatui-org/ratatui/commit/943c0431d968a82b23a2f31527f32e57f86f8a7c"><code>943c043</code></a> fix(scrollbar): dont render on 0 length track (<a href="https://redirect.github.com/ratatui-org/ratatui/issues/964">#964</a>)</li>
<li><a href="https://github.com/ratatui-org/ratatui/commit/65e792375396c3160d76964ef0dfc4fb1e53be41"><code>65e7923</code></a> perf(scrollbar): const creation (<a href="https://redirect.github.com/ratatui-org/ratatui/issues/963">#963</a>)</li>
<li><a href="https://github.com/ratatui-org/ratatui/commit/d0067c8815d5244d319934d58a9366c8ad36b3e5"><code>d0067c8</code></a> docs(license): update copyright years (<a href="https://redirect.github.com/ratatui-org/ratatui/issues/962">#962</a>)</li>
<li><a href="https://github.com/ratatui-org/ratatui/commit/35e971f7ebb0deadc613b561b15511abd48bdb54"><code>35e971f</code></a> fix: scrollbar thumb not visible on long lists (<a href="https://redirect.github.com/ratatui-org/ratatui/issues/959">#959</a>)</li>
<li><a href="https://github.com/ratatui-org/ratatui/commit/b0314c5731b32f51f5b6ca71a5194c6d7f265972"><code>b0314c5</code></a> chore: remove conventional commit check for PR (<a href="https://redirect.github.com/ratatui-org/ratatui/issues/950">#950</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/ratatui-org/ratatui/compare/v0.26.0-alpha.1...v0.26.2-alpha.2">compare view</a></li>
</ul>
</details>
<br />
[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=ratatui&package-manager=cargo&previous-version=0.26.0-alpha.1&new-version=0.26.2-alpha.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps ratatui from 0.26.0-alpha.1 to 0.26.2-alpha.2.
Release notes
Sourced from ratatui's releases.