bubbles
bubbles copied to clipboard
TUI components for Bubble Tea 🫧
This enables clients of the lib to update the suggestions at runtime whenever they please. One direct application of this is when using `m.SetValue()`: After calling it, there is no...
- Introduced `FileSelected` field to `Model` to store the selected file name. - Updated `Update` method to restore the selected file index based on `FileSelected`. - Adjusted min and max...
Fix content rendering in viewport by splitting each line based on viewport width. Previous implementation had a bug where lines exceeding the width would show in the viewport on multiple...
Added a method to get the character beneath the Cursor. - `func (m Model) GetChar() string` Ran into an edge case that can benefit from just knowing the character that...
Resolves https://github.com/charmbracelet/bubbles/issues/606. Updates the keybindings of the `list` component on each call to the `setSize` method. This resolves issues where pagination bindings are enabled (and shown in help) despite there...
Resolves https://github.com/charmbracelet/bubbles/issues/9. Adds a new "picker" component. By default this component takes an implementation of the `State` interface and displays it in a horizontal picker manner (as requested in the...
This breaks the API and removes high performance rendering and its related methods from the viewport package. It changes the API and makes the methods return nothing instead of lines...
This removes all the `NewModel` functions from all the bubbles and any deprecated fields and types.
This adds some checks to prevent slice out-of-bounds errors when calculating visible lines in the viewport. This will fix the panic we're seeing in https://github.com/charmbracelet/gum/issues/660#issuecomment-2323328662 (though we still need to...
This PR seeks to add unit tests for the `table` component as requested in https://github.com/charmbracelet/bubbles/issues/593. The hope is that the table bubble will be as thoroughly tested as [the lipgloss...