From b6ff6b160a83ac66fc3c7fa784c128f7ce3cf78c Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 14 Apr 2025 11:53:56 +0000
Subject: [PATCH] chore: bump github.com/charmbracelet/bubbles from 0.20.0 to
0.21.0 (#17381)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Bumps
[github.com/charmbracelet/bubbles](https://github.com/charmbracelet/bubbles)
from 0.20.0 to 0.21.0.
Sourced from github.com/charmbracelet/bubbles's
releases. Finally, You can also scroll manually with 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 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!
Release notes
v0.21.0
Viewport improvements
viewport finally has horizontal
scrolling ✨![^v1]
To enable it, use SetHorizontalStep (default in v2 will be
6).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
// 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!
[!NOTE] In v2, these functions will not return
lines []stringanymore, as it is no longer needed due toHighPerformanceRenderingbeing deprecated as well.
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.
... (truncated)
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 names9e5365e
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)