Skip to content

go: bump github.com/charmbracelet/bubbles from 0.20.0 to 0.21.0#387

Merged
kvendingoldo merged 1 commit intomainfrom
dependabot/go_modules/github.com/charmbracelet/bubbles-0.21.0
Apr 10, 2025
Merged

go: bump github.com/charmbracelet/bubbles from 0.20.0 to 0.21.0#387
kvendingoldo merged 1 commit intomainfrom
dependabot/go_modules/github.com/charmbracelet/bubbles-0.21.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot bot commented on behalf of github Apr 10, 2025

Bumps github.com/charmbracelet/bubbles from 0.20.0 to 0.21.0.

Release notes

Sourced from github.com/charmbracelet/bubbles's releases.

v0.21.0

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.

... (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 in compare 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>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Apr 10, 2025
@kvendingoldo kvendingoldo merged commit 5af919b into main Apr 10, 2025
4 checks passed
@kvendingoldo kvendingoldo deleted the dependabot/go_modules/github.com/charmbracelet/bubbles-0.21.0 branch April 10, 2025 11:05
tmeijn pushed a commit to tmeijn/dotfiles that referenced this pull request May 15, 2025
This MR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [tofuutils/tenv](https://github.com/tofuutils/tenv) | minor | `v4.4.0` -> `v4.6.2` |

MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot).

**Proposed changes to behavior should be submitted there as MRs.**

---

### Release Notes

<details>
<summary>tofuutils/tenv (tofuutils/tenv)</summary>

### [`v4.6.2`](https://github.com/tofuutils/tenv/releases/tag/v4.6.2)

[Compare Source](tofuutils/tenv@v4.4.0...v4.6.2)

#### What's Changed

-   go: bump github.com/charmbracelet/bubbles from 0.20.0 to 0.21.0 by [@&#8203;dependabot](https://github.com/dependabot) in tofuutils/tenv#387
-   fix(tests): add codecov integration by [@&#8203;kvendingoldo](https://github.com/kvendingoldo) in tofuutils/tenv#391
-   Add MacPorts installation instructions to README by [@&#8203;suhailskhan](https://github.com/suhailskhan) in tofuutils/tenv#393
-   go: bump github.com/PuerkitoBio/goquery from 1.10.2 to 1.10.3 by [@&#8203;dependabot](https://github.com/dependabot) in tofuutils/tenv#394
-   gh-actions: bump golangci/golangci-lint-action from 6 to 7 by [@&#8203;dependabot](https://github.com/dependabot) in tofuutils/tenv#384
-   Simplify goreleaser config for cloudsmith repos by [@&#8203;Nmishin](https://github.com/Nmishin) in tofuutils/tenv#395
-   Add cloudsmith installation option to the readme by [@&#8203;Nmishin](https://github.com/Nmishin) in tofuutils/tenv#396
-   gh-actions: bump sigstore/cosign-installer from 3.8.1 to 3.8.2 by [@&#8203;dependabot](https://github.com/dependabot) in tofuutils/tenv#398
-   go: bump github.com/charmbracelet/bubbletea from 1.3.4 to 1.3.5 by [@&#8203;dependabot](https://github.com/dependabot) in tofuutils/tenv#399
-   add terramate support by [@&#8203;dvaumoron](https://github.com/dvaumoron) in tofuutils/tenv#397
-   \-k flag default come from env var by [@&#8203;dvaumoron](https://github.com/dvaumoron) in tofuutils/tenv#402
-   Fix : handle terragrunt alpha version format by [@&#8203;dvaumoron](https://github.com/dvaumoron) in tofuutils/tenv#403
-   Revert "Simplify goreleaser config for cloudsmith repos" by [@&#8203;Nmishin](https://github.com/Nmishin) in tofuutils/tenv#407
-   Pin GH actions versions with ratchet by [@&#8203;Nmishin](https://github.com/Nmishin) in tofuutils/tenv#408

#### New Contributors

-   [@&#8203;suhailskhan](https://github.com/suhailskhan) made their first contribution in tofuutils/tenv#393

**Full Changelog**: tofuutils/tenv@v4.4.0...v4.6.2

</details>

---

### 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 MR becomes conflicted, or you tick the rebase/retry checkbox.

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

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box

---

This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MC4xMS4yIiwidXBkYXRlZEluVmVyIjoiNDAuMTEuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiUmVub3ZhdGUgQm90Il19-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant