Releases: charmbracelet/bubbles
v0.7.8
The mini-release prevents a panic that could occur when setting content in the viewport.
Thoughts? Questions? Feel free to reach out on Twitter and The Fediverse. We love hearing from you.
v0.7.7
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
andModel.BackgroundColor
is now simplyModel.Style
, alipgloss.Style
.
Text Input
Model.TextColor
is nowModel.TextStyle
Model.PlaceholderColor
is nowModel.PlaceholderStyle
Model.CursorColor
is nowModel.CursorStyle
All of these types are now lipgloss.Style
.
Improved
- Better rxvt-based terminal compatibility (courtesy Termenv)
- Bumped
bubbletea
,termenv
,reflow
,go-runewidth
andgo-colorful
dependencies
Fixed
- Data race in data race rxvt-based terminals (courtesy Termenv)
- Reset cursor in
SetValue
when initial position is0
(thanks, @kiyonlin)
Thoughts? Questions? Feel free to reach out on Twitter and The Fediverse. We love hearing from you.
v0.7.6
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:
v0.7.5
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 astruct
with properiesFrames []string
andFPS time.Duration
- Visual improvements to
spinner.Monkey
,spinner.Globe
, andspinner.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
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
andUpdate
are now methods onModel
Paginator
View
andUpdate
are now methods onModel
Spinner
View
andUpdate
are now methods onModel
- The
Tick
command no longer takes an argument - More spinner types
v0.7.3
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
andView
are now methods on the textinput model rather than standalone functionsBlink
is now a simpletea.Cmd
(it was previously afunc (textinput.Model) tea.Cmd
).
v0.7.2
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
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