MCPcopy Create free account

hub / github.com/charmbracelet/bubbles / types & classes

Types & classes115 in github.com/charmbracelet/bubbles

↓ 5 callersTypeAliasitem
list/list_test.go:15
↓ 2 callersTypeAliasfilteredItems
list/list.go:69
↓ 2 callersTypeAliaspasteMsg
Internal messages for clipboard operations.
textarea/textarea.go:41
↓ 1 callersTypeAliasFilterMatchesMsg
FilterMatchesMsg contains data about items matched during filtering. The message should be routed to Update for processing.
list/list.go:81
↓ 1 callersTypeAliasHInt
HInt is a type that implements the Hasher interface for integers.
internal/memoization/memoization.go:120
↓ 1 callersTypeAliasHString
HString is a type that implements the Hasher interface for strings.
internal/memoization/memoization.go:112
↓ 1 callersTypeAliascopyMsg
Internal messages for clipboard operations.
textarea/textarea.go:43
↓ 1 callersTypeAliasnodeValueStringer
tree/node_value_test.go:10
↓ 1 callersTypeAliaspasteMsg
Internal messages for clipboard operations.
textinput/textinput.go:24
StructBinding
Binding describes a set of keybindings and, optionally, their associated help text.
key/key.go:43
FuncTypeBindingOpt
BindingOpt is an initialization option for a keybinding. It's used as an argument to NewBinding.
key/key.go:51
StructBlinkMsg
BlinkMsg signals that the cursor should blink. It contains metadata that allows us to tell if the blink message is the one we're expecting.
cursor/cursor.go:29
FuncTypeColorFunc
ColorFunc is a function that can be used to dynamically fill the progress bar based on the current percentage. total is the total filled percentage, a
progress/progress.go:22
StructColumn
Column defines the table structure.
table/table.go:35
StructCursorStyle
CursorStyle is the style for real and virtual cursors.
textarea/textarea.go:170
StructCursorStyle
CursorStyle is the style for real and virtual cursors.
textinput/styles.go:71
StructDefaultDelegate
DefaultDelegate is a standard delegate designed to work in lists. It's styled by DefaultItemStyles, which can be customized as you like. The descript
list/defaultitem.go:86
InterfaceDefaultItem
DefaultItem describes an item designed to work with DefaultDelegate.
list/defaultitem.go:67
StructDefaultItemStyles
DefaultItemStyles defines styling for a default list item. See DefaultItemView for when these come into play.
list/defaultitem.go:16
TypeAliasEchoMode
EchoMode sets the input behavior of the text input field.
textinput/textinput.go:31
FuncTypeFilterFunc
FilterFunc takes a term and a list of strings to search through (defined by Item#FilterValue). It should return a sorted list of ranks.
list/list.go:86
TypeAliasFilterState
FilterState describes the current filtering state on the model.
list/list.go:155
StructFrameMsg
FrameMsg indicates that an animation step should occur.
progress/progress.go:181
StructGutterContext
GutterContext provides context to a [GutterFunc].
viewport/viewport.go:137
FuncTypeGutterFunc
GutterFunc can be implemented and set into [Model.LeftGutterFunc]. Example implementation showing line numbers: func(info GutterContext) string {
viewport/viewport.go:131
InterfaceHasher
Hasher is an interface that requires a Hash method. The Hash method is expected to return a string representation of the hash of the object.
internal/memoization/memoization.go:14
StructHelp
Help is help information for a given keybinding.
key/key.go:124
InterfaceItem
Item is an item that appears in the list.
list/list.go:34
InterfaceItemDelegate
ItemDelegate encapsulates the general functionality for all list items. The benefit to separating this logic from the item itself is that you can chan
list/list.go:46
InterfaceKeyMap
KeyMap is a map of keybindings used to generate help. Since it's an interface it can be any type, though struct or a map[string][]key.Binding are like
help/help.go:18
StructKeyMap
KeyMap is the key bindings for different actions within the paginator.
paginator/paginator.go:24
StructKeyMap
KeyMap defines keybindings. It satisfies to the help.KeyMap interface, which is used to render the help menu.
table/table.go:42
StructKeyMap
KeyMap defines keybindings. It satisfies to the help.KeyMap interface, which is used to render the menu.
list/keys.go:7
StructKeyMap
KeyMap is the key bindings for different actions within the textarea.
textarea/textarea.go:51
StructKeyMap
KeyMap defines key bindings for each user action.
filepicker/filepicker.go:67
StructKeyMap
KeyMap is the key bindings for different actions within the textinput.
textinput/textinput.go:50
StructKeyMap
KeyMap defines the keybindings for the viewport. Note that you don't necessary need to use keybindings at all; the viewport can be controlled programm
viewport/keymap.go:11
StructKeyMap
KeyMap is the key bindings for different actions within the tree.
tree/tree.go:22
StructLineInfo
LineInfo is a helper for keeping track of line information regarding soft-wrapped lines.
textarea/textarea.go:133
StructMemoCache
MemoCache is a struct that represents a cache with a set capacity. It uses an LRU (Least Recently Used) eviction policy. It is safe for concurrent use
internal/memoization/memoization.go:28
TypeAliasMode
Mode describes the behavior of the cursor.
cursor/cursor.go:44
StructModel
Model stores values we'll use when rendering the progress bar.
progress/progress.go:187
StructModel
Model is the Bubble Tea model for this user interface.
paginator/paginator.go:39
StructModel
Model for the stopwatch component.
stopwatch/stopwatch.go:55
StructModel
Model is the Bubble Tea model for this cursor element.
cursor/cursor.go:64
StructModel
Model defines a state for the table widget.
table/table.go:16
StructModel
Model contains the state of this component.
list/list.go:174
StructModel
Model is the Bubble Tea model for this text area element.
textarea/textarea.go:277
StructModel
Model represents a file picker.
filepicker/filepicker.go:127
StructModel
Model of the timer component.
timer/timer.go:90
StructModel
Model is the Bubble Tea model for this text input element.
textinput/textinput.go:93
StructModel
Model contains the state for the spinner. Use New to create new models rather than using Model as a struct literal.
spinner/spinner.go:88
StructModel
Model is the Bubble Tea model for this viewport element.
viewport/viewport.go:52
StructModel
Model contains the state of the help view.
help/help.go:77
StructModel
Model is the Bubble Tea model for this tree element.
tree/tree.go:104
StructNode
Node is a a node in the tree. Node implements lipgloss's tree.Node.
tree/node.go:10
TypeAliasNodes
Nodes are a list of tree nodes.
tree/node.go:206
FuncTypeOption
Option is used to set options in [New]. For example: progress := New( WithColors( lipgloss.Color("#5A56E0"), lipgloss.Color("#EE6FF8"), ),
progress/progress.go:70
FuncTypeOption
Option is used to set options in New.
paginator/paginator.go:126
FuncTypeOption
Option is a configuration option in [New]. For example: timer := New(time.Second*10, WithInterval(5*time.Second))
stopwatch/stopwatch.go:20
FuncTypeOption
Option is used to set options in New. For example: table := New(WithColumns([]Column{{Title: "ID", Width: 10}}))
table/table.go:130
FuncTypeOption
Option is the type of option that can be passed to Sanitize().
internal/runeutil/runeutil.go:36
FuncTypeOption
Option is a configuration option in [New]. For example: timer := New(time.Second*10, WithInterval(5*time.Second))
timer/timer.go:20
FuncTypeOption
Option is used to set options in New. For example: spinner := New(WithSpinner(Dot))
spinner/spinner.go:197
FuncTypeOption
Option is a configuration option that works in conjunction with [New]. For example: timer := New(WithWidth(10, WithHeight(5)))
viewport/viewport.go:23
StructPosition
Position is a location in the textarea's logical buffer: Row indexes a logical (unwrapped) line, Col indexes a rune within that line. Col may equal th
textarea/selection.go:13
StructPromptInfo
PromptInfo is a struct that can be used to store information about the prompt.
textarea/textarea.go:164
StructRank
Rank defines a rank for a given item.
list/list.go:89
StructResetMsg
ResetMsg is sent when the stopwatch should reset.
stopwatch/stopwatch.go:50
TypeAliasRow
Row represents one line in the table.
table/table.go:32
InterfaceSanitizer
Sanitizer is a helper for bubble widgets that want to process Runes from input key messages.
internal/runeutil/runeutil.go:12
StructSpinner
Spinner is a set of frames used in animating the spinner.
spinner/spinner.go:21
StructStartStopMsg
StartStopMsg is sent when the stopwatch should start or stop.
stopwatch/stopwatch.go:44
StructStartStopMsg
Authors note with regard to start and stop commands: Technically speaking, sending commands to start and stop the timer in this case is extraneous. T
timer/timer.go:58
FuncTypeStyleFunc
StyleFunc allows the tree to be styled per item.
tree/styles.go:6
StructStyleState
StyleState that will be applied to the text area. StyleState can be applied to focused and unfocused states to change the styles depending on the foc
textarea/textarea.go:213
StructStyleState
StyleState that will be applied to the text area. StyleState can be applied to focused and unfocused states to change the styles depending on the foc
textinput/styles.go:63
StructStyles
Styles contains style definitions for this list component. By default, these values are generated by DefaultStyles.
table/table.go:106
StructStyles
Styles contains style definitions for this list component. By default, these values are generated by DefaultStyles.
list/style.go:15
StructStyles
Styles are the styles for the textarea, separated into focused and blurred states. The appropriate styles will be chosen based on the focus state of t
textarea/textarea.go:200
StructStyles
Styles defines the possible customizations for styles in the file picker.
filepicker/filepicker.go:95
StructStyles
Styles are the styles for the textarea, separated into focused and blurred states. The appropriate styles will be chosen based on the focus state of t
textinput/styles.go:50
StructStyles
Styles is a set of available style definitions for the Help bubble.
help/help.go:31
StructStyles
Styles contains style definitions for this tree component. By default, these values are generated by DefaultStyles.
tree/styles.go:10
StructTickMsg
TickMsg is a message that is sent on every timer tick.
stopwatch/stopwatch.go:31
StructTickMsg
TickMsg is a message that is sent on every timer tick.
timer/timer.go:64
StructTickMsg
TickMsg indicates that the timer has ticked and we should render a frame.
spinner/spinner.go:124
StructTimeoutMsg
TimeoutMsg is a message that is sent once when the timer times out. It's a convenience message sent alongside a TickMsg with the Timeout value set to
timer/timer.go:85
TypeAliasType
Type specifies the way we render pagination.
paginator/paginator.go:15
FuncTypeValidateFunc
ValidateFunc is a function that returns an error if the input is invalid.
textinput/textinput.go:47
TypeAliasactionType
internal/memoization/memoization_test.go:11
StructblinkCanceled
blinkCanceled is sent when a blink operation is canceled.
cursor/cursor.go:35
StructblinkCtx
blinkCtx manages cursor blinking.
cursor/cursor.go:38
StructcacheAction
internal/memoization/memoization_test.go:18
StructcopyErrMsg
Internal messages for clipboard operations.
textarea/textarea.go:44
StructcustomClipboardErr
textarea/textarea_test.go:3227
StructcustomClipboardErr
textinput/textinput_test.go:226
Structentry
entry is a struct that holds a key-value pair. It is used as an element in the evictionList of the MemoCache.
internal/memoization/memoization.go:20
StructerrorMsg
filepicker/filepicker.go:51
StructfilteredItem
list/list.go:63
next →1–100 of 115, ranked by callers