Skip to content

build(deps): Bump github.com/charmbracelet/bubbles from 0.7.6 to 0.8.0#24

Closed
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/go_modules/github.com/charmbracelet/bubbles-0.8.0
Closed

build(deps): Bump github.com/charmbracelet/bubbles from 0.7.6 to 0.8.0#24
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/go_modules/github.com/charmbracelet/bubbles-0.8.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot bot commented on behalf of github Jun 3, 2021

Bumps github.com/charmbracelet/bubbles from 0.7.6 to 0.8.0.

Release notes

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

v0.8.0

Textinput Cursor Options and Enhancements

This release introduces options for textinput cursor behavior and improves subtleties with cursor blinking when multiple textinputs are present.

To change the cursor behavior:

import "github.com/charmbracelet/bubbles/textinput"
m := textinput.NewModel()
m.SetCursorMode(textinput.CursorStatic) // no blinking
m.SetCursorMode(textinput.CursorHide)   // actually, let's hide the cursor
m.SetCursorMode(textinput.CursorBlink)  // jk let's make it blink

Changelog

New

  • Cursors now have three modes: CursorBlink, CursorStatic and CursorHide (all of type CursorMode). You can set the cursor mode via textinput’s Model.SetCursor(CursorMode) and get the cursor mode with Model.CursorMode() CursorMode.

Changed

  • textinput’s Model.Focus() is now Model.Focus() tea.Cmd. This will initiate a properly timed cursor blink when focusing on a textinput if the cursor mode is set to blink.

Fixed

  • After their initial cursor blink (initiated by textinput.Blink() tea.Cmd), textinputs can now only receive blink messages they sent. This prevents textinputs from receiving other textinputs blink messages when focus changes.
  • When cursor blink messages are sent, former blink messages in transit are invalidated, eliminating the change of rogue blinks.

Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter and The Fediverse, or right here in GitHub Discussions.

v0.7.9

Minor Textinput Updates

This is a minor PR that improves the textinput API and behavior when dealing with masked input, such as passwords.

Changed

  • SetCursor(int), CursorStart() and CursorEnd() no longer return values.
  • If EchoMode is not EchoNormal word-to-word movement instead jumps to the beginning and end. Word-based deletion also deletes to the beginning and end.

New

  • Cursor() int returns the cursor position.

... (truncated)

Commits
  • d06aa4a Ensure that textinputs can only receive their own blink messages
  • 10962af Textinput's focus method now returns a command to initiate cursor blink
  • 5082ae6 Add API for blink, static and hidden cursor modes to textinput
  • 4365990 Fix typo in a spinner comment
  • 1405b09 Update footer in README for consistency with newer Charm repos
  • f53c742 Fix goreportcard badge
  • 9449cc7 Don't allow word-based deletion when input is masked in textinput
  • 58a1773 Don't allow word-to-word movement when input is masked in textinput
  • f016c31 Add method for returning cursor position in textinput
  • 7443632 Public cursor movement functions no longer return values in textinput
  • 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 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.7.6 to 0.8.0.
- [Release notes](https://github.com/charmbracelet/bubbles/releases)
- [Commits](charmbracelet/bubbles@v0.7.6...v0.8.0)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/bubbles
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jun 3, 2021
@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot bot commented on behalf of github Sep 9, 2021

Superseded by #31.

@dependabot dependabot bot closed this Sep 9, 2021
@dependabot dependabot bot deleted the dependabot/go_modules/github.com/charmbracelet/bubbles-0.8.0 branch September 9, 2021 11:06
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants