Skip to content

Releases: charmbracelet/bubbles

v0.7.5

12 Nov 16:27

Choose a tag to compare

This release contains design updates to Spinner which provide spin-speeds on a per-spinner basis for a better out-of-the-box experience, as well as a bugfix.

New:

  • Added default spinners: spinner.MiniDot, spinner.Pulse, spinner.Points

Changed:

  • Type spinner.Spinner is now a struct with properies Frames []string and FPS time.Duration
  • Visual improvements to spinner.Monkey, spinner.Globe, and spinner.Moon

Removed:

  • spinner.Bit8

Fixed:

  • spinner.TickMsg is now sent on both start and update; the previous version had an internal un-exported start message which made passing messages to spinners more cumbersome

v0.7.4

09 Nov 02:21

Choose a tag to compare

This release contains small design updates to make components feel more like the program structure introduced Bubble Tea v0.12.x. Note that this is an API change that will require some small adjustments to the Viewport, Paginator, and Spinner components. Note that Textinput was already updated to this format in v0.7.3.

Viewport

  • View and Update are now methods on Model

Paginator

  • View and Update are now methods on Model

Spinner

  • View and Update are now methods on Model
  • The Tick command no longer takes an argument
  • More spinner types

v0.7.3

02 Nov 15:10

Choose a tag to compare

Textinput features, fixes and improvements:

  • New: Textinput now supports multi-character (IME) input in Bubble Tea v0.12.2
  • Improved: blink timer resets when moving the cursor for a better user experience
  • Fixed: ctrl+f and ctrl+b keybindings for forwards/backwards cursor movement

Textinput API changes:

  • Update and View are now methods on the textinput model rather than standalone functions
  • Blink is now a simple tea.Cmd (it was previously a func (textinput.Model) tea.Cmd).

v0.7.2

28 Oct 14:53

Choose a tag to compare

Fixes and Improvements:

Textarea:

  • Make cursor visible when it changes position
  • Support ctrl+w and alt+d to delete words left/right of cursor
  • Support alt+backspace to delete previous word
  • Fix panic when pasting into a textinput with no char limit
  • Fix regression where cursor was misplaced after a paste

Viewport:

  • Fix situation where short viewports would cause a panic

Paginator:

  • SetTotalPages now returns a page count of 1 when item count is less than 1

v0.7.1

22 Oct 19:46

Choose a tag to compare

New:

  • Password-like behavior for textinupts: see EchoMode and EchoCharacter properties
  • Additional standard keybindings for viewports
  • Default home/end mappings for textinputs

Fixed:

  • Delete key behavior on textinput