Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/charmbracelet/bubbles
/ functions
Functions
843 in github.com/charmbracelet/bubbles
⨍
Functions
843
◇
Types & classes
115
↓ 1 callers
Method
AllNodes
AllNodes returns all nodes in the tree as a flat list.
tree/tree.go:597
↓ 1 callers
Method
AllNodes
AllNodes returns all descendant nodes as a flat list.
tree/node.go:184
↓ 1 callers
Method
Blur
Blur blurs the cursor.
cursor/cursor.go:225
↓ 1 callers
Method
Blur
Blur removes the focus state on the model. When the model is blurred it can not receive keyboard input and the cursor will be hidden.
textarea/textarea.go:820
↓ 1 callers
Method
Blur
Blur removes the focus state on the model. When the model is blurred it can not receive keyboard input and the cursor will be hidden.
textinput/textinput.go:279
↓ 1 callers
Method
ChildNodes
ChildNodes returns the children of an item.
tree/node.go:173
↓ 1 callers
Method
ClearHighlights
ClearHighlights clears previously set highlights.
viewport/viewport.go:612
↓ 1 callers
Method
Close
Close closes the node.
tree/node.go:74
↓ 1 callers
Method
CloseCurrentNode
CloseCurrentNode closes the currently selected node.
tree/tree.go:339
↓ 1 callers
Method
CopySelection
CopySelection copies the selected text to the clipboard and returns a command that performs the copy. Returns nil if there is no selection.
textarea/textarea.go:1876
↓ 1 callers
Method
Cursor
Cursor returns a [tea.Cursor] for rendering a real cursor in a Bubble Tea program. This requires that [Model.VirtualCursor] is set to false. Note tha
textarea/textarea.go:1798
↓ 1 callers
Method
CursorDown
CursorDown moves the cursor down. This can also advance the state to the next page.
list/list.go:581
↓ 1 callers
Method
CursorUp
CursorUp moves the cursor up. This can also move the state to the previous page.
list/list.go:555
↓ 1 callers
Function
DefaultDarkStyles
DefaultDarkStyles returns the default styles for a dark background.
textarea/textarea.go:477
↓ 1 callers
Function
DefaultDarkStyles
DefaultDarkStyles returns the default styles for a dark background.
textinput/styles.go:43
↓ 1 callers
Function
DefaultDarkStyles
DefaultDarkStyles returns a set of default styles for dark backgrounds.
help/help.go:67
↓ 1 callers
Function
DefaultKeyMap
DefaultKeyMap is the default set of key bindings for navigating and acting upon the paginator.
paginator/paginator.go:31
↓ 1 callers
Function
DefaultKeyMap
DefaultKeyMap returns the default set of key bindings for navigating and acting upon the textarea.
textarea/textarea.go:91
↓ 1 callers
Function
DefaultKeyMap
DefaultKeyMap defines the default keybindings.
filepicker/filepicker.go:80
↓ 1 callers
Function
DefaultKeyMap
DefaultKeyMap is the default set of key bindings for navigating and acting upon the textinput.
textinput/textinput.go:71
↓ 1 callers
Function
DefaultKeyMap
DefaultKeyMap returns a set of pager-like default keybindings.
viewport/keymap.go:23
↓ 1 callers
Function
DefaultKeyMap
DefaultKeyMap returns the default set of key bindings for navigating and acting upon the tree.
tree/tree.go:43
↓ 1 callers
Function
DefaultStyles
DefaultStyles returns a set of default style definitions for this list component.
list/style.go:44
↓ 1 callers
Function
DefaultStyles
DefaultStyles defines the default styling for the file picker.
filepicker/filepicker.go:110
↓ 1 callers
Method
Description
()
list/defaultitem.go:70
↓ 1 callers
Method
DidSelectDisabledFile
DidSelectDisabledFile returns whether a user tried to select a disabled file (on this msg). This is necessary only if you would like to warn the user
filepicker/filepicker.go:468
↓ 1 callers
Method
EnsureVisible
EnsureVisible ensures that the given line and column are in the viewport.
viewport/viewport.go:469
↓ 1 callers
Method
Enumerator
Enumerator sets the enumerator for the tree.
tree/tree.go:660
↓ 1 callers
Method
EnumeratorStyleFunc
EnumeratorStyleFunc sets the enumeration style function. Use this function for conditional styling. t := tree.Root("root"). EnumeratorStyleFunc(fu
tree/node.go:300
↓ 1 callers
Method
Focus
Focus focuses the cursor to allow it to blink if desired.
cursor/cursor.go:214
↓ 1 callers
Method
Focused
Focused returns the focus state on the model.
textarea/textarea.go:798
↓ 1 callers
Method
Focused
Focused returns the focus state on the model.
textinput/textinput.go:266
↓ 1 callers
Method
FullHelp
FullHelp returns bindings to show the full help view. It's part of the help.KeyMap interface.
list/list.go:1041
↓ 1 callers
Method
GoToBottom
GoToBottom moves the selection to the bottom of the tree.
tree/tree.go:316
↓ 1 callers
Method
GoToTop
GoToTop moves the selection to the top of the tree.
tree/tree.go:311
↓ 1 callers
Method
GotoTop
GotoTop sets the viewport to the top position.
viewport/viewport.go:578
↓ 1 callers
Method
HalfPageDown
HalfPageDown moves the view down by half the height of the viewport.
viewport/viewport.go:499
↓ 1 callers
Method
HalfPageDown
HalfPageDown moves the selection down by half a page.
tree/tree.go:301
↓ 1 callers
Method
HalfPageUp
HalfPageUp moves the view up by half the height of the viewport.
viewport/viewport.go:507
↓ 1 callers
Method
HalfPageUp
HalfPageUp moves the selection up by half a page.
tree/tree.go:306
↓ 1 callers
Method
ID
ID returns the model's identifier. This can be used to determine if messages belong to this timer instance when there are multiple timers.
timer/timer.go:118
↓ 1 callers
Method
Indenter
Indenter sets the indenter for the tree.
tree/tree.go:669
↓ 1 callers
Method
IndenterStyleFunc
IndenterStyleFunc sets the indenter style function. Use this function for conditional styling. t := tree.Root("root"). IndenterStyleFunc(func(_ tr
tree/node.go:329
↓ 1 callers
Method
InsertRune
InsertRune inserts a rune at the cursor position.
textarea/textarea.go:540
↓ 1 callers
Function
IsHidden
IsHidden reports whether a file is hidden or not.
filepicker/hidden_unix.go:9
↓ 1 callers
Method
IsOpen
IsOpen returns whether the node is open.
tree/node.go:92
↓ 1 callers
Method
ItemStyleFunc
ItemStyleFunc sets the item style function. Use this for conditional styling. For example: t := tree.Root("root"). ItemStyleFunc(func(_ tree.Nodes
tree/node.go:234
↓ 1 callers
Method
Keys
Keys returns the keys for the keybinding.
key/key.go:89
↓ 1 callers
Method
LineOffset
LineOffset returns the vertical offset of the node in rendered lines.
tree/node.go:64
↓ 1 callers
Method
MatchedSuggestions
MatchedSuggestions returns the list of matched suggestions.
textinput/textinput.go:840
↓ 1 callers
Method
MatchesForItem
MatchesForItem returns rune positions matched by the current filter, if any. Use this to style runes matched by the active filter. See DefaultItemVie
list/list.go:521
↓ 1 callers
Method
MoveToEnd
MoveToEnd moves the cursor to the end of the input.
textarea/textarea.go:1177
↓ 1 callers
Function
NewDefaultItemStyles
NewDefaultItemStyles returns style definitions for a default item. See DefaultItemView for when these come into play.
list/defaultitem.go:35
↓ 1 callers
Method
NextPage
NextPage is a helper function for navigating one page forward. It will not page beyond the last page (i.e. totalPages - 1).
paginator/paginator.go:109
↓ 1 callers
Method
NodeAtCurrentOffset
NodeAtCurrentOffset returns the item at the current yoffset.
tree/tree.go:655
↓ 1 callers
Method
OpenCurrentNode
OpenCurrentNode opens the currently selected node.
tree/tree.go:330
↓ 1 callers
Method
PageDown
PageDown moves the view down by the number of lines in the viewport.
viewport/viewport.go:483
↓ 1 callers
Method
PageDown
PageDown moves the selection down by one page.
tree/tree.go:291
↓ 1 callers
Method
PageUp
PageUp moves the view up by one height of the viewport.
viewport/viewport.go:491
↓ 1 callers
Method
PageUp
PageUp moves the selection up by one page.
tree/tree.go:296
↓ 1 callers
Method
PrevPage
PrevPage is a helper function for navigating one page backward. It will not page beyond the first page (i.e. page 0).
paginator/paginator.go:101
↓ 1 callers
Method
RemoveItem
RemoveItem removes an item at the given index. If the index is out of bounds this will be a no-op. O(n) complexity, which probably won't matter in the
list/list.go:468
↓ 1 callers
Method
RootStyle
RootStyle sets a style for the root element.
tree/node.go:341
↓ 1 callers
Method
Running
Running returns true if the stopwatch is running or false if it is stopped.
stopwatch/stopwatch.go:119
↓ 1 callers
Method
ScrollPercent
ScrollPercent returns the amount scrolled as a float between 0 and 1.
viewport/viewport.go:200
↓ 1 callers
Method
ScrollYOffset
ScrollYOffset returns the Y offset (top row) index of the current view, which can be used to calculate the current scroll position.
textarea/textarea.go:690
↓ 1 callers
Method
Select
Select selects the given index of the list and goes to its respective page.
list/list.go:422
↓ 1 callers
Method
SetAdditionalShortHelpKeys
SetAdditionalShortHelpKeys sets additional key mappings for the short help view. This allows you to add additional key mappings to the help menu witho
tree/tree.go:276
↓ 1 callers
Method
SetColumns
SetColumns sets a new columns state.
table/table.go:319
↓ 1 callers
Method
SetHeight
SetHeight sets the height of this component.
tree/tree.go:501
↓ 1 callers
Method
SetHorizontalStep
SetHorizontalStep sets the amount of cells that the viewport moves in the default viewport keymapping. If set to 0 or less, horizontal scrolling is di
viewport/viewport.go:540
↓ 1 callers
Method
SetShowHelp
SetShowHelp shows or hides the help view.
tree/tree.go:480
↓ 1 callers
Method
SetStatusBarItemName
SetStatusBarItemName defines a replacement for the item's identifier. Defaults to item/items.
list/list.go:368
↓ 1 callers
Method
SetStyles
SetStyles updates styling for the textarea.
textarea/textarea.go:487
↓ 1 callers
Method
SetStyles
SetStyles sets the styles for this component.
tree/tree.go:403
↓ 1 callers
Method
SetVirtualCursor
SetVirtualCursor sets whether or not to use the virtual cursor.
textarea/textarea.go:498
↓ 1 callers
Method
SetWidth
SetWidth sets the width of the viewport of the table.
table/table.go:325
↓ 1 callers
Method
SetWidth
SetWidth sets the width of this component.
list/list.go:724
↓ 1 callers
Method
SetWidth
SetWidth sets the width of this component.
tree/tree.go:496
↓ 1 callers
Method
StartSpinner
StartSpinner starts the spinner. Note that this returns a command.
list/list.go:688
↓ 1 callers
Method
Stop
Stop stops the stopwatch.
stopwatch/stopwatch.go:97
↓ 1 callers
Method
StopSpinner
StopSpinner stops the spinner.
list/list.go:694
↓ 1 callers
Method
String
()
tree/node_value_test.go:12
↓ 1 callers
Method
Styles
Styles returns the current styles for the textarea.
textarea/textarea.go:482
↓ 1 callers
Method
Title
()
list/defaultitem.go:69
↓ 1 callers
Method
Toggle
Toggle stops the timer if it's running and starts it if it's stopped.
timer/timer.go:195
↓ 1 callers
Method
ToggleCurrentNode
ToggleCurrentNode toggles the current node open/close state.
tree/tree.go:321
↓ 1 callers
Method
TotalLineCount
TotalLineCount returns the total number of lines (both hidden and visible) within the viewport.
viewport/viewport.go:567
↓ 1 callers
Method
Unbind
Unbind removes the keys and help from this binding, effectively nullifying it. This is a step beyond disabling it, since applications can enable or di
key/key.go:118
↓ 1 callers
Method
Unwrap
()
textinput/textinput.go:28
↓ 1 callers
Method
Up
Up moves the selection up by one item.
tree/tree.go:286
↓ 1 callers
Method
View
View of the timer component.
stopwatch/stopwatch.go:175
↓ 1 callers
Method
View
View returns the view of the file picker.
filepicker/filepicker.go:378
↓ 1 callers
Method
View
View of the timer component.
timer/timer.go:180
↓ 1 callers
Method
VisibleLineCount
VisibleLineCount returns the number of the visible lines within the viewport.
viewport/viewport.go:573
↓ 1 callers
Function
WithColorFunc
WithColorFunc sets a function that can be used to dynamically fill the progress bar based on the current percentage. total is the total filled percent
progress/progress.go:125
↓ 1 callers
Function
WithFillCharacters
WithFillCharacters sets the characters used to construct the full and empty components of the progress bar.
progress/progress.go:134
↓ 1 callers
Function
WithFocused
WithFocused sets the focus state of the table.
table/table.go:181
↓ 1 callers
Function
WithKeyMap
WithKeyMap sets the key map.
table/table.go:195
↓ 1 callers
Function
WithScaled
WithScaled sets whether to scale the blend/gradient to fit the width of only the filled portion of the progress bar. The default is false, which means
progress/progress.go:174
← previous
next →
301–400 of 843, ranked by callers