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
↓ 3 callers
Method
titleView
()
list/list.go:1125
↓ 3 callers
Method
toggleNode
(node *Node, open bool)
tree/tree.go:347
↓ 3 callers
Method
updateStyles
Since the selected node changes, we need to capture m.yOffset in the style function's closure again.
tree/tree.go:679
↓ 3 callers
Method
updateVirtualCursorStyle
updateVirtualCursorStyle sets styling on the virtual cursor based on the textarea's style settings.
textinput/textinput.go:954
↓ 3 callers
Method
view
()
textarea/textarea.go:1525
↓ 3 callers
Function
wrap
(runes []rune, width int)
textarea/textarea.go:2068
↓ 2 callers
Function
Blink
Blink is a command used to initialize cursor blinking.
cursor/cursor.go:209
↓ 2 callers
Method
Blur
Blur blurs the table, preventing selection or movement.
table/table.go:245
↓ 2 callers
Method
Capacity
Capacity is a method that returns the capacity of the MemoCache.
internal/memoization/memoization.go:48
↓ 2 callers
Method
CurrentSuggestion
CurrentSuggestion returns the currently selected suggestion.
textinput/textinput.go:850
↓ 2 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
textinput/textinput.go:926
↓ 2 callers
Method
CursorEnd
CursorEnd moves the cursor to the end of the input field.
textinput/textinput.go:261
↓ 2 callers
Method
CursorStart
CursorStart moves the cursor to the start of the input field.
textinput/textinput.go:256
↓ 2 callers
Function
DefaultKeyMap
DefaultKeyMap returns a default set of keybindings.
table/table.go:67
↓ 2 callers
Function
DefaultKeyMap
DefaultKeyMap returns a default set of keybindings.
list/keys.go:34
↓ 2 callers
Function
DefaultStyles
DefaultStyles returns the default styles for focused and blurred states for the textarea.
textarea/textarea.go:437
↓ 2 callers
Function
DefaultStyles
DefaultStyles returns a set of default styles for the help bubble. Light or dark styles can be selected by passing true or false to the isDark paramet
help/help.go:48
↓ 2 callers
Function
DefaultStyles
DefaultStyles returns a set of default style definitions for this tree component.
tree/styles.go:49
↓ 2 callers
Method
Down
Down moves the selection down by one item.
tree/tree.go:281
↓ 2 callers
Method
FilterState
FilterState returns the current filter state.
list/list.go:635
↓ 2 callers
Method
FilterValue
FilterValue is the value we use when filtering against this item when we're filtering the list.
list/list.go:37
↓ 2 callers
Method
FullHelp
FullHelp returns an extended group of help items, grouped by columns. The help bubble will render the help in the order in which the help items are re
help/help.go:27
↓ 2 callers
Method
GetContent
GetContent returns the entire content as a single string. Line endings are normalized to '\n'.
viewport/viewport.go:263
↓ 2 callers
Method
GetSliceBounds
GetSliceBounds is a helper function for paginating slices. Pass the length of the slice you're rendering and you'll receive the start and end bounds c
paginator/paginator.go:93
↓ 2 callers
Method
GoToEnd
GoToEnd moves to the last page, and last item on the last page.
list/list.go:613
↓ 2 callers
Method
GotoBottom
GotoBottom sets the viewport to the bottom position.
viewport/viewport.go:588
↓ 2 callers
Method
Hash
()
internal/memoization/memoization.go:15
↓ 2 callers
Method
Height
Height returns the height of the file picker.
filepicker/filepicker.go:246
↓ 2 callers
Method
Indicator
Indicator returns the rendered open/closed symbol.
tree/node.go:33
↓ 2 callers
Method
Init
Init starts the timer.
timer/timer.go:137
↓ 2 callers
Method
IsAnimating
IsAnimating returns false if the progress bar reached equilibrium and is no longer animating.
progress/progress.go:446
↓ 2 callers
Method
Length
Length returns the number of characters currently in the text input.
textarea/textarea.go:664
↓ 2 callers
Function
New
New returns a model with default values.
spinner/spinner.go:110
↓ 2 callers
Method
NextPage
NextPage moves to the next page, if available.
list/list.go:625
↓ 2 callers
Method
OnFirstPage
OnFirstPage returns whether or not we're on the first page.
paginator/paginator.go:121
↓ 2 callers
Method
PageDown
PageDown moves the cursor down by one page. First call snaps to the last visible line, subsequent calls move down by a full page.
textarea/textarea.go:1198
↓ 2 callers
Method
PageUp
PageUp moves the cursor up by one page. First call snaps to the first visible line, subsequent calls move up by a full page.
textarea/textarea.go:1185
↓ 2 callers
Method
PrevPage
PrevPage moves to the previous page, if available.
list/list.go:619
↓ 2 callers
Function
ReplaceNewlines
ReplaceNewlines replaces newline characters by the specified string.
internal/runeutil/runeutil.go:47
↓ 2 callers
Function
ReplaceTabs
ReplaceTabs replaces tabs by the specified string.
internal/runeutil/runeutil.go:39
↓ 2 callers
Method
Reset
Reset sets the input to its default state with no input.
textarea/textarea.go:826
↓ 2 callers
Method
SetContentLines
SetContentLines allows to set the lines to be shown instead of the content. If a given line has a \n in it, it will still be split into multiple lines
viewport/viewport.go:230
↓ 2 callers
Method
SetHeight
SetHeight sets the height of the viewport of the table.
table/table.go:331
↓ 2 callers
Method
SetHighlights
SetHighlights sets ranges of characters to highlight. For instance, `[]int{[]int{2, 10}, []int{20, 30}}` will highlight characters 2 to 10 and 20 to 3
viewport/viewport.go:602
↓ 2 callers
Method
SetItems
SetItems sets the items available in the list. This returns a command.
list/list.go:407
↓ 2 callers
Method
SetMode
SetMode sets the model's cursor mode. This method returns a command. For available cursor modes, see type CursorMode.
cursor/cursor.go:169
↓ 2 callers
Method
SetSize
SetSize sets the width and height of this component.
list/list.go:734
↓ 2 callers
Method
SetSpringOptions
SetSpringOptions sets the frequency and damping for the current spring. Frequency corresponds to speed, and damping to bounciness. For details see: h
progress/progress.go:288
↓ 2 callers
Method
SetVirtualCursor
SetVirtualCursor sets whether the model should use a virtual cursor. If disabled, use [Model.Cursor] to return a real cursor for rendering.
textinput/textinput.go:186
↓ 2 callers
Method
SetWidth
SetWidth sets the width of the progress bar.
progress/progress.go:345
↓ 2 callers
Method
ShortHelp
ShortHelp returns a slice of bindings to be displayed in the short version of the help. The help bubble will render help in the order in which the hel
help/help.go:22
↓ 2 callers
Method
ShortHelpView
ShortHelpView renders a single line help view from a slice of keybindings. If the line is longer than the maximum width it will be gracefully truncate
help/help.go:128
↓ 2 callers
Method
Start
Start starts the stopwatch.
stopwatch/stopwatch.go:90
↓ 2 callers
Method
Start
Start resumes the timer. Has no effect if the timer has timed out.
timer/timer.go:185
↓ 2 callers
Method
Unwrap
()
textarea/textarea.go:48
↓ 2 callers
Method
View
View renders the viewport into a string.
viewport/viewport.go:725
↓ 2 callers
Method
Width
Width returns the viewport width of the table.
table/table.go:342
↓ 2 callers
Method
Width
Width returns the current width setting.
tree/tree.go:486
↓ 2 callers
Function
WithColors
WithColors sets the colors to use to fill the progress bar. Depending on the number of colors passed in, will determine whether to use a solid fill or
progress/progress.go:88
↓ 2 callers
Method
YOffset
YOffset returns the vertical offset of the selected node. Useful for scrolling to the selected node using a viewport.
tree/tree.go:639
↓ 2 callers
Method
bottomIdx
bottomIdx returns the index of the last visible entry for a viewport whose first visible entry is top. If the height has not been set yet, one entry i
filepicker/filepicker.go:238
↓ 2 callers
Function
clampPercent
clampPercent keeps invalid progress from entering the spring or bar renderer.
progress/progress.go:437
↓ 2 callers
Method
computedEndOfBuffer
()
textarea/textarea.go:239
↓ 2 callers
Method
computedText
()
textarea/textarea.go:255
↓ 2 callers
Method
cursorView
()
tree/tree.go:575
↓ 2 callers
Method
deleteAfterCursor
deleteAfterCursor deletes all text after the cursor. If input is masked delete everything after the cursor so as not to reveal word breaks in the mask
textinput/textinput.go:413
↓ 2 callers
Method
deleteBeforeCursor
deleteBeforeCursor deletes all text before the cursor.
textinput/textinput.go:403
↓ 2 callers
Method
deleteSelection
deleteSelection deletes the currently selected text, positions the cursor at the start of the former selection, and clears the selection state. It is
textarea/textarea.go:1830
↓ 2 callers
Method
deleteWordLeft
deleteWordLeft deletes the word left to the cursor. Returns whether or not the cursor blink should be reset.
textarea/textarea.go:919
↓ 2 callers
Method
deleteWordRight
deleteWordRight deletes the word right to the cursor.
textarea/textarea.go:958
↓ 2 callers
Method
didSelectFile
(msg tea.Msg)
filepicker/filepicker.go:476
↓ 2 callers
Method
getStyle
()
tree/node.go:108
↓ 2 callers
Method
getSuggestions
(sugs [][]rune)
textinput/textinput.go:826
↓ 2 callers
Method
gutterWidth
gutterWidth returns the number of columns rendered to the left of the text content: the prompt, plus the line-number column when enabled. Mouse coordi
textarea/selection.go:29
↓ 2 callers
Method
helpView
()
list/list.go:1284
↓ 2 callers
Method
helpView
()
tree/tree.go:586
↓ 2 callers
Method
itemsAsFilterItems
()
list/list.go:757
↓ 2 callers
Function
keyPress
(key rune)
textinput/textinput_test.go:188
↓ 2 callers
Method
moveCursorTo
moveCursorTo places the cursor at the given buffer position, clamped to the buffer's bounds.
textarea/selection.go:214
↓ 2 callers
Method
nextFrame
()
progress/progress.go:354
↓ 2 callers
Method
nextSuggestion
nextSuggestion selects the next suggestion.
textinput/textinput.go:891
↓ 2 callers
Method
paginationView
()
list/list.go:1222
↓ 2 callers
Method
promptView
()
textinput/textinput.go:740
↓ 2 callers
Method
readDir
(path string, showHidden bool)
filepicker/filepicker.go:197
↓ 2 callers
Function
runeIndexes
runeIndexes converts the byte offsets that sahilm/fuzzy reports into rune offsets. MatchesForItem documents its result as rune positions and lipgloss.
list/list.go:130
↓ 2 callers
Method
san
rsan initializes or retrieves the rune sanitizer.
textinput/textinput.go:301
↓ 2 callers
Method
selectFrom
selectFrom sets the selection anchor and head.
textarea/selection.go:206
↓ 2 callers
Method
setRootStyles
()
tree/tree.go:462
↓ 2 callers
Method
setValueInternal
(runes []rune, err error)
textinput/textinput.go:222
↓ 2 callers
Method
shouldAddItem
(totalWidth, width int)
help/help.go:239
↓ 2 callers
Method
spinnerView
()
list/list.go:1288
↓ 2 callers
Function
stripString
(str string)
textarea/textarea_test.go:2823
↓ 2 callers
Function
testHighlights
(tb testing.TB, content string, re *regexp.Regexp, expect []highlightInfo)
viewport/viewport_test.go:632
↓ 2 callers
Function
tick
(id int, tag int, d time.Duration)
stopwatch/stopwatch.go:183
↓ 2 callers
Method
tick
()
timer/timer.go:199
↓ 2 callers
Method
totalLineCount
()
textarea/textarea.go:1151
↓ 2 callers
Method
transposeLeft
transposeLeft exchanges the runes at the cursor and immediately before. No-op if the cursor is at the beginning of the line. If the cursor is not at
textarea/textarea.go:900
↓ 2 callers
Method
updateVirtualCursorStyle
updateVirtualCursorStyle sets styling on the virtual cursor based on the textarea's style settings.
textarea/textarea.go:505
↓ 2 callers
Method
wordLeft
wordLeft moves the cursor one word to the left. Returns whether or not the cursor blink should be reset. If input is masked, move input to the start s
textarea/textarea.go:1020
↓ 2 callers
Method
wordRight
wordRight moves the cursor one word to the right. Returns whether or not the cursor blink should be reset. If the input is masked, move input to the e
textarea/textarea.go:1043
← previous
next →
201–300 of 843, ranked by callers