chore(deps): bump github.com/charmbracelet/bubbles from 0.18.0 to 0.21.0
Bumps github.com/charmbracelet/bubbles from 0.18.0 to 0.21.0.
Release notes
Sourced from github.com/charmbracelet/bubbles's releases.
v0.21.0
Viewport improvements
Finally,
viewportfinally has horizontal scrolling ✨![^v1] To enable it, useSetHorizontalStep(default in v2 will be6).You can also scroll manually with
ScrollLeftandScrollRight, and useSetXOffsetto scroll to a specific position (or0to 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 edgeTo 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 []stringanymore, as it is no longer needed due toHighPerformanceRenderingbeing deprecated as well.Other improvements
The
listbubble got a couple of new functions:SetFilterText,SetFilterState, andGlobalIndex- which you can use to get the index of the item in the unfiltered, original item list.
... (truncated)
Commits
8b55efbfix(textarea): placeholder with chinese chars (#767)bd2a5b0fix: golangci-lint 2 fixes (#769)cce8481ci: sync golangci-lint config (#770)ea344abfeat(viewport): horizontal scroll with mouse wheel (#761)39668ecfix(viewport): normalize method names (#763)f2434c3Revert "fix(viewport): normalize method names"c7f889efix(viewport): normalize method names9e5365edocs: add example for ValidateFunc (#705)c814ac7chore(deps): bump github.com/charmbracelet/lipgloss from 1.0.0 to 1.1.0 (#751)3befcccchore(deps): bump github.com/muesli/termenv from 0.15.2 to 0.16.0 (#740)- Additional commits viewable in compare view
You can trigger a rebase of this PR by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency -
@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Note Automatic rebases have been disabled on this pull request as it has been open for over 30 days.
Pull Request Test Coverage Report for Build 14851825077
Details
- 0 of 0 changed or added relevant lines in 0 files are covered.
- 5 unchanged lines in 1 file lost coverage.
- Overall coverage decreased (-0.02%) to 60.152%
| Files with Coverage Reduction | New Missed Lines | % |
|---|---|---|
| internal/gen/keys/keys.go | 5 | 12.9% |
| <!-- | Total: | 5 |
| Totals | |
|---|---|
| Change from base Build 14851812081: | -0.02% |
| Covered Lines: | 8994 |
| Relevant Lines: | 14952 |
💛 - Coveralls
Superseded by #4033.