Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb6ff6b1

Browse files
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 &quot;fix(viewport): normalize method names&quot;</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 />[![Dependabot compatibilityscore](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/charmbracelet/bubbles&package-manager=go_modules&previous-version=0.20.0&new-version=0.21.0)](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

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

‎go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ require (
8989
github.com/cakturk/go-netstatv0.0.0-20200220111822-e5b49efee7a5
9090
github.com/cenkalti/backoff/v4v4.3.0
9191
github.com/cespare/xxhash/v2v2.3.0
92-
github.com/charmbracelet/bubblesv0.20.0
93-
github.com/charmbracelet/bubbleteav1.1.0
92+
github.com/charmbracelet/bubblesv0.21.0
93+
github.com/charmbracelet/bubbleteav1.3.4
9494
github.com/charmbracelet/glamourv0.9.1
9595
github.com/charmbracelet/lipglossv1.1.0
9696
github.com/chromedp/cdprotov0.0.0-20250319231242-a755498943c8

‎go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -837,8 +837,8 @@ github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XL
837837
github.com/cespare/xxhash/v2v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
838838
github.com/cespare/xxhash/v2v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs=
839839
github.com/cespare/xxhash/v2v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
840-
github.com/charmbracelet/bubblesv0.20.0 h1:jSZu6qD8cRQ6k9OMfR1WlM+ruM8fkPWkHvQWD9LIutE=
841-
github.com/charmbracelet/bubblesv0.20.0/go.mod h1:39slydyswPy+uVOHZ5x/GjwVAFkCsV8IIVy+4MhzwwU=
840+
github.com/charmbracelet/bubblesv0.21.0 h1:9TdC97SdRVg/1aaXNVWfFH3nnLAwOXr8Fn6u6mfQdFs=
841+
github.com/charmbracelet/bubblesv0.21.0/go.mod h1:HF+v6QUR4HkEpz62dx7ym2xc71/KBHg+zKwJtMw+qtg=
842842
github.com/charmbracelet/colorprofilev0.2.3-0.20250311203215-f60798e515dc h1:4pZI35227imm7yK2bGPcfpFEmuY1gc2YSTShr4iJBfs=
843843
github.com/charmbracelet/colorprofilev0.2.3-0.20250311203215-f60798e515dc/go.mod h1:X4/0JoqgTIPSFcRA/P6INZzIuyqdFY5rm8tb41s9okk=
844844
github.com/charmbracelet/glamourv0.9.1 h1:11dEfiGP8q1BEqvGoIjivuc2rBk+5qEXdPtaQ2WoiCM=
@@ -849,8 +849,8 @@ github.com/charmbracelet/x/ansi v0.8.0 h1:9GTq3xq9caJW8ZrBTe0LIe2fvfLR/bYXKTx2ll
849849
github.com/charmbracelet/x/ansiv0.8.0/go.mod h1:wdYl/ONOLHLIVmQaxbIYEC/cRKOQyjTkowiI4blgS9Q=
850850
github.com/charmbracelet/x/cellbufv0.0.13-0.20250311204145-2c3ea96c31dd h1:vy0GVL4jeHEwG5YOXDmi86oYw2yuYUGqz6a8sLwg0X8=
851851
github.com/charmbracelet/x/cellbufv0.0.13-0.20250311204145-2c3ea96c31dd/go.mod h1:xe0nKWGd3eJgtqZRaN9RjMtK7xUYchjzPr7q6kcvCCs=
852-
github.com/charmbracelet/x/exp/goldenv0.0.0-20240815200342-61de596daa2b h1:MnAMdlwSltxJyULnrYbkZpp4k58Co7Tah3ciKhSNo0Q=
853-
github.com/charmbracelet/x/exp/goldenv0.0.0-20240815200342-61de596daa2b/go.mod h1:wDlXFlCrmJ8J+swcL/MnGUuYnqgQdW9rhSD61oNMb6U=
852+
github.com/charmbracelet/x/exp/goldenv0.0.0-20241011142426-46044092ad91 h1:payRxjMjKgx2PaCWLZ4p3ro9y97+TVLZNaRZgJwSVDQ=
853+
github.com/charmbracelet/x/exp/goldenv0.0.0-20241011142426-46044092ad91/go.mod h1:wDlXFlCrmJ8J+swcL/MnGUuYnqgQdW9rhSD61oNMb6U=
854854
github.com/charmbracelet/x/termv0.2.1 h1:AQeHeLZ1OqSXhrAWpYUtZyX1T3zVxfpZuEQMIQaGIAQ=
855855
github.com/charmbracelet/x/termv0.2.1/go.mod h1:oQ4enTYFV7QN4m0i9mzHrViD7TQKvNEEkHUMCmsxdUg=
856856
github.com/cheggaaa/pbv1.0.27/go.mod h1:pQciLPpbU0oxA0h+VJYYLxO+XeDQb5pZijXscXHm81s=

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp