Skip to content

Releases: charmbracelet/bubbles

v0.7.7

13 Apr 23:27
Compare
Choose a tag to compare

Hello, Lip Gloss

This release introduces Lip Gloss into the Spinner and Text Input components offering a greater range of styling options. Note that this introduces some minor API changes.

New

Text Input

  • Added textinput.Model.PromptStyle. Previously, styling the prompt was left as an exercise for the user.

Changed

Spinner

  • Model.ForegroundColor and Model.BackgroundColor is now simply Model.Style, a lipgloss.Style.

Text Input

  • Model.TextColor is now Model.TextStyle
  • Model.PlaceholderColor is now Model.PlaceholderStyle
  • Model.CursorColor is now Model.CursorStyle

All of these types are now lipgloss.Style.

Improved

  • Better rxvt-based terminal compatibility (courtesy Termenv)
  • Bumped bubbletea, termenv, reflow, go-runewidth and go-colorful dependencies

Fixed

  • Data race in data race rxvt-based terminals (courtesy Termenv)
  • Reset cursor in SetValue when initial position is 0 (thanks, @kiyonlin)

Thoughts? Questions? Feel free to reach out on Twitter and The Fediverse. We love hearing from you.

The Charm logo

v0.7.6

13 Jan 19:40
c8f4855
Compare
Choose a tag to compare

Progress!

This release features a simple, flexible, and customizable progress bar for your terminal apps.

  • Choose from solid and gradient fills
  • Set the empty and filled runes to whatever you'd like
  • The percentage readout is customizable and can also be omitted entirely

For more info see:

Progress Bar Example

v0.7.5

12 Nov 16:27
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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