Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Dec 13, 2023

This PR contains the following updates:

Package Change Age Confidence
github.com/charmbracelet/bubbles v0.16.1v0.21.0 age confidence

Release Notes

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

v0.21.0

Compare Source

Viewport improvements

Finally, viewport finally has horizontal scrolling ✨!1
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.

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.

v0.20.0

Compare Source

Focus. Breathe.

This features support for Bubble Tea's new focus-blur feature as well as a quality-of-life update to paginator. Enjoy!

Focus

You heard that right. Focus-blur window events are now enabled for textinput and textarea which were recently added to Bubble Tea v1.1.0. As long as WithReportFocus is enabled in your Program you'll automatically get nicer inputs.

To enable focus reporting:

p := tea.NewProgram(model{}, tea.WithReportFocus())

Remember to stay focused and hydrated!

Paginator opts

Speaking of functional arguments, paginator also received some some new quality-of-life startup options, courtesy @​nervo.

p := paginator.New(
	paginator.WithPerPage(42),
	paginator.WithTotalPages(42),
)

Of course, you can still set the values on the model directly too:

p := paginator.New()
p.PerPage = 42
p.TotalPages = 24

Happy paging!

Changelog

New!
Deps

The Charm logo

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

v0.19.0

Compare Source

Bugs? Squashed (along with a few nice lil’ features).

Community-Driven Development?! Yep, the majority of the changes in this release were done by the community. Thank you all for your contributions that made this release possible.

Progress: custom chars

You can now customize the filled and empty characters of the progress bar.

p := progress.New(progress.WithFillCharacters('>', '.'))

progress bar example

Table improvements

Help is on the way

Table now includes a short and full help view so it's easier than ever to tell your users how to interact with the table.

// Render a table with its help.
t := table.New()
view := t.View() + "\n" + t.HelpView()
Accessing columns

You can also now get the table's columns (this already existed for rows).

package table

// Columns returns the current columns.
func (m Model) Columns() []Column

List: page navigation is fixed!

Previously, list.NextPage() and list.PrevPage() didn't work because the methods did not have pointer receivers. We've fixed this…by making them pointer receivers!

⚠️ Note that this is a minor API change and you might need to update your app to pass a pointer receiver to your model rather than a copy. Details in #​458.

package progress

// NextPage moves to the next page, if available.
func (m *Model) NextPage()

// PrevPage moves to the previous page, if available.
func (m *Model) PrevPage()

What’s Changed

Changed
Added
Fixed
Test coverage ✅

New Contributors

Full Changelog: charmbracelet/bubbles@v0.18.0...v0.19.0


The Charm logo

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

v0.18.0

Compare Source

Textarea, but faster

This release features several fixes and big performance improvements for the textarea bubble.

What's Changed

New
Improved
Fixed

New Contributors

Full Changelog: charmbracelet/bubbles@v0.17.1...v0.18.0


The Charm logo

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

v0.17.1

Compare Source

Bumping Bubble Tea

This is just a little update to update to the latest version of Bubble Tea.

What's Changed

Full Changelog: charmbracelet/bubbles@v0.17.0...v0.17.1


The Charm logo

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

v0.17.0

Compare Source

Text input autocompletions and various improvements

Autocompletion in Text Input

So @​toadle wanted textinputs to support autocompletion in a ghost-text kind of a way. Rather than wait for us to do it he did what any dedicated open source developer would: he sent a PR! And now we can all benefit from his hard work.

Autocompletion is super easy to use:

ti := textinput.New()
ti.SetSuggestions([]string{"meow", "purr"})

By default you can press ctrl+n and ctrl+p to cycle through suggestions, but those keybindings can be changed as you, the application developer, see fit. For details check out textinput.SetSuggestions and the corresponding KeyMap in the docs.

Is the progress bar done yet?

@​yrashk acutely noticed that to nicely transition from one state to another after an animated progress bar fills up it's helpful to know when the animated has finished animating before transitioning. To solve for this he added an IsAnimating method to the progress model. Thanks, @​yrashk!

Changelog

New!
Improved
Fixed

Full Changelog: charmbracelet/bubbles@v0.16.1...v0.17.0

New Contributors


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.

Footnotes

  1. It is disabled by default in v1, but will be enabled in v2.

@renovate renovate bot force-pushed the renovate/github.com-charmbracelet-bubbles-0.x branch from a7830c6 to 90a4c85 Compare December 16, 2023 21:37
@renovate renovate bot changed the title fix(deps): update module github.com/charmbracelet/bubbles to v0.17.0 fix(deps): update module github.com/charmbracelet/bubbles to v0.17.1 Dec 16, 2023
@renovate renovate bot force-pushed the renovate/github.com-charmbracelet-bubbles-0.x branch from 90a4c85 to 720889e Compare February 3, 2024 19:26
@renovate renovate bot changed the title fix(deps): update module github.com/charmbracelet/bubbles to v0.17.1 fix(deps): update module github.com/charmbracelet/bubbles to v0.18.0 Feb 3, 2024
@renovate renovate bot force-pushed the renovate/github.com-charmbracelet-bubbles-0.x branch from 720889e to 29edadd Compare August 23, 2024 20:35
@renovate renovate bot changed the title fix(deps): update module github.com/charmbracelet/bubbles to v0.18.0 fix(deps): update module github.com/charmbracelet/bubbles to v0.19.0 Aug 23, 2024
@renovate
Copy link
Contributor Author

renovate bot commented Aug 23, 2024

ℹ 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):

  • 9 additional dependencies were updated
  • The go directive was updated for compatibility reasons

Details:

Package Change
go 1.20 -> 1.23.0
github.com/charmbracelet/bubbletea v0.24.2 -> v1.3.4
github.com/charmbracelet/lipgloss v0.8.0 -> v1.1.0
github.com/mattn/go-runewidth v0.0.15 -> v0.0.16
github.com/muesli/termenv v0.15.2 -> v0.16.0
golang.org/x/sync v0.3.0 -> v0.11.0
github.com/mattn/go-isatty v0.0.18 -> v0.0.20
github.com/muesli/ansi v0.0.0-20211018074035-2e021307bc4b -> v0.0.0-20230316100256-276c6243b2f6
github.com/rivo/uniseg v0.2.0 -> v0.4.7
golang.org/x/sys v0.7.0 -> v0.30.0

@renovate renovate bot force-pushed the renovate/github.com-charmbracelet-bubbles-0.x branch from 29edadd to 0f0dfd3 Compare September 8, 2024 18:27
@renovate renovate bot changed the title fix(deps): update module github.com/charmbracelet/bubbles to v0.19.0 fix(deps): update module github.com/charmbracelet/bubbles to v0.20.0 Sep 8, 2024
@renovate renovate bot changed the title fix(deps): update module github.com/charmbracelet/bubbles to v0.20.0 fix(deps): update module github.com/charmbracelet/bubbles to v0.20.0 - autoclosed Oct 16, 2024
@renovate renovate bot closed this Oct 16, 2024
@renovate renovate bot deleted the renovate/github.com-charmbracelet-bubbles-0.x branch October 16, 2024 04:20
@renovate renovate bot changed the title fix(deps): update module github.com/charmbracelet/bubbles to v0.20.0 - autoclosed fix(deps): update module github.com/charmbracelet/bubbles to v0.20.0 Oct 16, 2024
@renovate renovate bot reopened this Oct 16, 2024
@renovate renovate bot restored the renovate/github.com-charmbracelet-bubbles-0.x branch October 16, 2024 07:18
@renovate renovate bot force-pushed the renovate/github.com-charmbracelet-bubbles-0.x branch from 0f0dfd3 to 9b864b0 Compare April 9, 2025 23:56
@renovate renovate bot changed the title fix(deps): update module github.com/charmbracelet/bubbles to v0.20.0 fix(deps): update module github.com/charmbracelet/bubbles to v0.21.0 Apr 9, 2025
@renovate renovate bot force-pushed the renovate/github.com-charmbracelet-bubbles-0.x branch from 9b864b0 to 22572e4 Compare April 24, 2025 07:04
@renovate renovate bot force-pushed the renovate/github.com-charmbracelet-bubbles-0.x branch from 22572e4 to 51223b3 Compare May 7, 2025 12:53
@renovate renovate bot force-pushed the renovate/github.com-charmbracelet-bubbles-0.x branch from 51223b3 to e1cd402 Compare July 20, 2025 02:13
@renovate renovate bot force-pushed the renovate/github.com-charmbracelet-bubbles-0.x branch from e1cd402 to 693e7c4 Compare August 10, 2025 13:04
@renovate renovate bot force-pushed the renovate/github.com-charmbracelet-bubbles-0.x branch from 693e7c4 to 5808d37 Compare October 9, 2025 10:44
@renovate
Copy link
Contributor Author

renovate bot commented Dec 15, 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):

  • 9 additional dependencies were updated
  • The go directive was updated for compatibility reasons

Details:

Package Change
go 1.20 -> 1.23.0
github.com/charmbracelet/bubbletea v0.24.2 -> v1.3.4
github.com/charmbracelet/lipgloss v0.8.0 -> v1.1.0
github.com/mattn/go-runewidth v0.0.15 -> v0.0.16
github.com/muesli/termenv v0.15.2 -> v0.16.0
golang.org/x/sync v0.3.0 -> v0.11.0
github.com/mattn/go-isatty v0.0.18 -> v0.0.20
github.com/muesli/ansi v0.0.0-20211018074035-2e021307bc4b -> v0.0.0-20230316100256-276c6243b2f6
github.com/rivo/uniseg v0.2.0 -> v0.4.7
golang.org/x/sys v0.7.0 -> v0.30.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant