- Notifications
You must be signed in to change notification settings - Fork907
Commitb6ff6b1
authored
chore: bump github.com/charmbracelet/bubbles from 0.20.0 to 0.21.0 (#17381)
Bumps[github.com/charmbracelet/bubbles](https://github.com/charmbracelet/bubbles)from 0.20.0 to 0.21.0.<details><summary>Release notes</summary><p><em>Sourced from <ahref="https://github.com/charmbracelet/bubbles/releases">github.com/charmbracelet/bubbles'sreleases</a>.</em></p><blockquote><h2>v0.21.0</h2><h2>Viewport improvements</h2><p>Finally, <code>viewport</code> finally has <em>horizontalscrolling</em> ✨![^v1]To enable it, use <code>SetHorizontalStep</code> (default in v2 will be<code>6</code>).</p><p>You can also scroll manually with <code>ScrollLeft</code> and<code>ScrollRight</code>, and use<code>SetXOffset</code> to scroll to a specific position (or<code>0</code> to reset):</p><pre lang="go"><code>vp := viewport.New()vp.SetHorizontalStep(10) // how many columns to scroll on each key pressvp.ScrollRight(30) // pan 30 columns to the right!vp.ScrollLeft(10) // pan 10 columns to the left!vp.SetXOffset(0) // back to the left edge</code></pre><p>To make the API more consistent, vertical scroll functions were alsorenamed,and the old ones were deprecated (and will be removed in v2):</p><pre lang="go"><code>// Scroll n lines up/down:func (m Model) LineUp(int) // deprecatedfunc (m Model) ScrollUp(int) // new!func (m Model) LineDown(int) // deprecatedfunc (m Model) ScrollDown(int) // new!<p>// Scroll half page up/down:func (m Model) HalfViewUp() []string // deprecatedfunc (m Model) HalfPageUp() []string // new!func (m Model) HalfViewDown() []string // deprecatedfunc (m Model) HalfPageDown() []string // new!</p><p>// Scroll a full page up/down:func (m Model) ViewUp(int) []string // deprecatedfunc (m Model) PageUp(int) []string // new!func (m Model) ViewDown(int) []string // deprecatedfunc (m Model) PageDown(int) []string // new!</code></pre></p><blockquote><p>[!NOTE]In v2, these functions will not return <code>lines []string</code>anymore, as it is nolonger needed due to <code>HighPerformanceRendering</code> beingdeprecated as well.</p></blockquote><h2>Other improvements</h2><p>The <code>list</code> bubble got a couple of new functions:<code>SetFilterText</code>,<code>SetFilterState</code>, and <code>GlobalIndex</code> - which youcan use to get the index of theitem in the unfiltered, original item list.</p><!-- raw HTML omitted --></blockquote><p>... (truncated)</p></details><details><summary>Commits</summary><ul><li><ahref="https://github.com/charmbracelet/bubbles/commit/8b55efb2944ed8eb81df685f8dcfabbbf8897698"><code>8b55efb</code></a>fix(textarea): placeholder with chinese chars (<ahref="https://redirect.github.com/charmbracelet/bubbles/issues/767">#767</a>)</li><li><ahref="https://github.com/charmbracelet/bubbles/commit/bd2a5b0c6a7abc66b8a009d2aded233e6ba02fa4"><code>bd2a5b0</code></a>fix: golangci-lint 2 fixes (<ahref="https://redirect.github.com/charmbracelet/bubbles/issues/769">#769</a>)</li><li><ahref="https://github.com/charmbracelet/bubbles/commit/cce848148cbea9e1bc5ca7d2c3d1ef89702db0e4"><code>cce8481</code></a>ci: sync golangci-lint config (<ahref="https://redirect.github.com/charmbracelet/bubbles/issues/770">#770</a>)</li><li><ahref="https://github.com/charmbracelet/bubbles/commit/ea344ab907bddf5e8f71cd73b9583b070e8f1b2f"><code>ea344ab</code></a>feat(viewport): horizontal scroll with mouse wheel (<ahref="https://redirect.github.com/charmbracelet/bubbles/issues/761">#761</a>)</li><li><ahref="https://github.com/charmbracelet/bubbles/commit/39668ec6291e1fc3e574f30c650e1ba0801e1f6d"><code>39668ec</code></a>fix(viewport): normalize method names (<ahref="https://redirect.github.com/charmbracelet/bubbles/issues/763">#763</a>)</li><li><ahref="https://github.com/charmbracelet/bubbles/commit/f2434c374bd0f55ac0d5b3e8261161b97ea41a30"><code>f2434c3</code></a>Revert "fix(viewport): normalize method names"</li><li><ahref="https://github.com/charmbracelet/bubbles/commit/c7f889e364e15dc5b08a8c799e80164031847ab9"><code>c7f889e</code></a>fix(viewport): normalize method names</li><li><ahref="https://github.com/charmbracelet/bubbles/commit/9e5365e0ec0c4005efc7a3cc47f67941840e4144"><code>9e5365e</code></a>docs: add example for ValidateFunc (<ahref="https://redirect.github.com/charmbracelet/bubbles/issues/705">#705</a>)</li><li><ahref="https://github.com/charmbracelet/bubbles/commit/c814ac75c3b4be111bf163c07655971543be33f9"><code>c814ac7</code></a>chore(deps): bump github.com/charmbracelet/lipgloss from 1.0.0 to 1.1.0(<ahref="https://redirect.github.com/charmbracelet/bubbles/issues/751">#751</a>)</li><li><ahref="https://github.com/charmbracelet/bubbles/commit/3befcccf8702cb29ad196acc10b4899aa16b47f0"><code>3befccc</code></a>chore(deps): bump github.com/muesli/termenv from 0.15.2 to 0.16.0 (<ahref="https://redirect.github.com/charmbracelet/bubbles/issues/740">#740</a>)</li><li>Additional commits viewable in <ahref="https://github.com/charmbracelet/bubbles/compare/v0.20.0...v0.21.0">compareview</a></li></ul></details><br />[](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'talter it yourself. You can also trigger a rebase manually by commenting`@dependabot rebase`.[//]: # (dependabot-automerge-start)[//]: # (dependabot-automerge-end)---<details><summary>Dependabot commands and options</summary><br />You can trigger Dependabot actions by commenting on this PR:- `@dependabot rebase` will rebase this PR- `@dependabot recreate` will recreate this PR, overwriting any editsthat 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 afteryour CI passes on it- `@dependabot cancel merge` will cancel a previously requested mergeand block automerging- `@dependabot reopen` will reopen this PR if it is closed- `@dependabot close` will close this PR and stop Dependabot recreatingit. You can achieve the same result by closing it manually- `@dependabot show <dependency name> ignore conditions` will show allof the ignore conditions of the specified dependency- `@dependabot ignore this major version` will close this PR and stopDependabot creating any more for this major version (unless you reopenthe PR or upgrade to it yourself)- `@dependabot ignore this minor version` will close this PR and stopDependabot creating any more for this minor version (unless you reopenthe PR or upgrade to it yourself)- `@dependabot ignore this dependency` will close this PR and stopDependabot creating any more for this dependency (unless you reopen thePR or upgrade to it yourself)</details>Signed-off-by: dependabot[bot] <support@github.com>Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>1 parent199c408 commitb6ff6b1
2 files changed
+6
-6
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
89 | 89 |
| |
90 | 90 |
| |
91 | 91 |
| |
92 |
| - | |
93 |
| - | |
| 92 | + | |
| 93 | + | |
94 | 94 |
| |
95 | 95 |
| |
96 | 96 |
| |
|
Lines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
837 | 837 |
| |
838 | 838 |
| |
839 | 839 |
| |
840 |
| - | |
841 |
| - | |
| 840 | + | |
| 841 | + | |
842 | 842 |
| |
843 | 843 |
| |
844 | 844 |
| |
| |||
849 | 849 |
| |
850 | 850 |
| |
851 | 851 |
| |
852 |
| - | |
853 |
| - | |
| 852 | + | |
| 853 | + | |
854 | 854 |
| |
855 | 855 |
| |
856 | 856 |
| |
|
0 commit comments
Comments
(0)