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

chore: bump github.com/charmbracelet/bubbles from 0.20.0 to 0.21.0#17381

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

dependabot[bot]
Copy link
Contributor

@dependabotdependabotbot commented on behalf ofgithubApr 14, 2025

Bumpsgithub.com/charmbracelet/bubbles from 0.20.0 to 0.21.0.

Release notes

Sourced fromgithub.com/charmbracelet/bubbles's releases.

v0.21.0

Viewport improvements

Finally,viewport finally hashorizontal scrolling ✨![^v1]To enable it, useSetHorizontalStep (default in v2 will be6).

You can also scroll manually withScrollLeft andScrollRight, and useSetXOffset to scroll to a specific position (or0 to reset):

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

To make the API more consistent, vertical scroll functions were also renamed,and the old ones were deprecated (and will be removed in v2):

// Scroll n lines up/down:func (mModel)LineUp(int)// deprecatedfunc (mModel)ScrollUp(int)// new!func (mModel)LineDown(int)// deprecatedfunc (mModel)ScrollDown(int)// new!// Scroll half page up/down:func (mModel)HalfViewUp() []string// deprecatedfunc (mModel)HalfPageUp() []string// new!func (mModel)HalfViewDown() []string// deprecatedfunc (mModel)HalfPageDown() []string// new!// Scroll a full page up/down:func (mModel)ViewUp(int) []string// deprecatedfunc (mModel)PageUp(int) []string// new!func (mModel)ViewDown(int) []string// deprecatedfunc (mModel)PageDown(int) []string// new!

[!NOTE]In v2, these functions will not returnlines []string anymore, as it is nolonger needed due toHighPerformanceRendering being deprecated as well.

Other improvements

Thelist bubble got a couple of new functions:SetFilterText,SetFilterState, andGlobalIndex - which you can use to get the index of theitem in the unfiltered, original item list.

... (truncated)

Commits
  • 8b55efb fix(textarea): placeholder with chinese chars (#767)
  • bd2a5b0 fix: golangci-lint 2 fixes (#769)
  • cce8481 ci: sync golangci-lint config (#770)
  • ea344ab feat(viewport): horizontal scroll with mouse wheel (#761)
  • 39668ec fix(viewport): normalize method names (#763)
  • f2434c3 Revert "fix(viewport): normalize method names"
  • c7f889e fix(viewport): normalize method names
  • 9e5365e docs: add example for ValidateFunc (#705)
  • c814ac7 chore(deps): bump github.com/charmbracelet/lipgloss from 1.0.0 to 1.1.0 (#751)
  • 3befccc chore(deps): bump github.com/muesli/termenv from 0.15.2 to 0.16.0 (#740)
  • Additional commits viewable incompare view

Dependabot compatibility score

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 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 <dependency name> 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 [github.com/charmbracelet/bubbles](https://github.com/charmbracelet/bubbles) from 0.20.0 to 0.21.0.- [Release notes](https://github.com/charmbracelet/bubbles/releases)- [Changelog](https://github.com/charmbracelet/bubbles/blob/master/.goreleaser.yml)- [Commits](charmbracelet/bubbles@v0.20.0...v0.21.0)---updated-dependencies:- dependency-name: github.com/charmbracelet/bubbles  dependency-version: 0.21.0  dependency-type: direct:production  update-type: version-update:semver-minor...Signed-off-by: dependabot[bot] <support@github.com>
@dependabotdependabotbot added dependenciesPull requests that update a dependency file goPull requests that update go code labelsApr 14, 2025
@github-actionsgithub-actionsbotenabled auto-merge (squash)April 14, 2025 11:42
@github-actionsgithub-actionsbot merged commitb6ff6b1 intomainApr 14, 2025
31 checks passed
@github-actionsgithub-actionsbot deleted the dependabot/go_modules/github.com/charmbracelet/bubbles-0.21.0 branchApril 14, 2025 11:53
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@github-actionsgithub-actions[bot]github-actions[bot] approved these changes

Assignees
No one assigned
Labels
dependenciesPull requests that update a dependency filegoPull requests that update go code
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

0 participants

[8]ページ先頭

©2009-2025 Movatter.jp