Skip to content

fix(deps): update module github.com/charmbracelet/bubbles to v0.21.0#583

Merged
PIKACHUIM merged 1 commit intomainfrom
renovate/github.com-charmbracelet-bubbles-0.x
Jul 24, 2025
Merged

fix(deps): update module github.com/charmbracelet/bubbles to v0.21.0#583
PIKACHUIM merged 1 commit intomainfrom
renovate/github.com-charmbracelet-bubbles-0.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate bot commented Jul 4, 2025

This PR contains the following updates:

Package Change Age Confidence
github.com/charmbracelet/bubbles v0.20.0 -> v0.21.0 age confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

charmbracelet/bubbles (github.com/charmbracelet/bubbles)

v0.21.0

Compare Source

Viewport improvements

Finally, viewport finally has horizontal scrolling ✨![^v1]
To enable it, use SetHorizontalStep (default in v2 will be 6).

You can also scroll manually with ScrollLeft and ScrollRight, and use
SetXOffset to scroll to a specific position (or 0 to reset):

vp := viewport.New()
vp.SetHorizontalStep(10) // how many columns to scroll on each key press
vp.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 (m Model) LineUp(int)     // deprecated
func (m Model) ScrollUp(int)   // new!
func (m Model) LineDown(int)   // deprecated
func (m Model) ScrollDown(int) // new!

// Scroll half page up/down:
func (m Model) HalfViewUp() []string   // deprecated
func (m Model) HalfPageUp() []string   // new!
func (m Model) HalfViewDown() []string // deprecated
func (m Model) HalfPageDown() []string // new!

// Scroll a full page up/down:
func (m Model) ViewUp(int) []string   // deprecated
func (m Model) PageUp(int) []string   // new!
func (m Model) ViewDown(int) []string // deprecated
func (m Model) PageDown(int) []string // new!

[!NOTE]
In v2, these functions will not return lines []string anymore, as it is no
longer needed due to HighPerformanceRendering being deprecated as well.

Other improvements

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

On textinput, you can now get the matched suggestions and more with
MatchedSuggestions and CurrentSuggestionIndex.

To put the cherry on top, this release also includes numerous bug fixes.
You can read about each of them in the linked commits/PRs below.

[^v1]: It is disabled by default in v1, but will be enabled in v2.

Changelog

New Features
Bug fixes
Dependency updates
Documentation updates
Other work

The Charm logo

Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
Copy link
Copy Markdown
Contributor Author

renovate bot commented Jul 4, 2025

ℹ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 5 additional dependencies were updated

Details:

Package Change
github.com/charmbracelet/bubbletea v1.1.0 -> v1.3.4
github.com/charmbracelet/lipgloss v0.13.1 -> v1.1.0
github.com/charmbracelet/x/ansi v0.3.2 -> v0.8.0
github.com/charmbracelet/x/term v0.2.0 -> v0.2.1
github.com/muesli/termenv v0.15.2 -> v0.16.0

@renovate renovate bot force-pushed the renovate/github.com-charmbracelet-bubbles-0.x branch from fb26cfe to 66c1b34 Compare July 5, 2025 16:57
@jyxjjj jyxjjj added the AUTO Automatically created by robots/AIs label Jul 9, 2025
@renovate renovate bot force-pushed the renovate/github.com-charmbracelet-bubbles-0.x branch from 66c1b34 to 9b02dba Compare July 11, 2025 02:27
@renovate renovate bot changed the title fix(deps): update module github.com/charmbracelet/bubbles to v0.21.0 fix(deps): update module github.com/charmbracelet/bubbles to v0.21.0 - autoclosed Jul 24, 2025
@renovate renovate bot closed this Jul 24, 2025
@renovate renovate bot deleted the renovate/github.com-charmbracelet-bubbles-0.x branch July 24, 2025 01:21
@renovate renovate bot changed the title fix(deps): update module github.com/charmbracelet/bubbles to v0.21.0 - autoclosed fix(deps): update module github.com/charmbracelet/bubbles to v0.21.0 Jul 24, 2025
@renovate renovate bot reopened this Jul 24, 2025
@renovate renovate bot force-pushed the renovate/github.com-charmbracelet-bubbles-0.x branch from 5fc8b53 to 9b02dba Compare July 24, 2025 02:06
@PIKACHUIM PIKACHUIM merged commit 74c2ed8 into main Jul 24, 2025
24 checks passed
Suyunmeng pushed a commit that referenced this pull request Jul 30, 2025
…583)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AUTO Automatically created by robots/AIs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants