MCPcopy Create free account

hub / github.com/charmbracelet/bubbles / functions

Functions843 in github.com/charmbracelet/bubbles

↓ 3 callersMethodtitleView
()
list/list.go:1125
↓ 3 callersMethodtoggleNode
(node *Node, open bool)
tree/tree.go:347
↓ 3 callersMethodupdateStyles
Since the selected node changes, we need to capture m.yOffset in the style function's closure again.
tree/tree.go:679
↓ 3 callersMethodupdateVirtualCursorStyle
updateVirtualCursorStyle sets styling on the virtual cursor based on the textarea's style settings.
textinput/textinput.go:954
↓ 3 callersMethodview
()
textarea/textarea.go:1525
↓ 3 callersFunctionwrap
(runes []rune, width int)
textarea/textarea.go:2068
↓ 2 callersFunctionBlink
Blink is a command used to initialize cursor blinking.
cursor/cursor.go:209
↓ 2 callersMethodBlur
Blur blurs the table, preventing selection or movement.
table/table.go:245
↓ 2 callersMethodCapacity
Capacity is a method that returns the capacity of the MemoCache.
internal/memoization/memoization.go:48
↓ 2 callersMethodCurrentSuggestion
CurrentSuggestion returns the currently selected suggestion.
textinput/textinput.go:850
↓ 2 callersMethodCursor
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 callersMethodCursorEnd
CursorEnd moves the cursor to the end of the input field.
textinput/textinput.go:261
↓ 2 callersMethodCursorStart
CursorStart moves the cursor to the start of the input field.
textinput/textinput.go:256
↓ 2 callersFunctionDefaultKeyMap
DefaultKeyMap returns a default set of keybindings.
table/table.go:67
↓ 2 callersFunctionDefaultKeyMap
DefaultKeyMap returns a default set of keybindings.
list/keys.go:34
↓ 2 callersFunctionDefaultStyles
DefaultStyles returns the default styles for focused and blurred states for the textarea.
textarea/textarea.go:437
↓ 2 callersFunctionDefaultStyles
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 callersFunctionDefaultStyles
DefaultStyles returns a set of default style definitions for this tree component.
tree/styles.go:49
↓ 2 callersMethodDown
Down moves the selection down by one item.
tree/tree.go:281
↓ 2 callersMethodFilterState
FilterState returns the current filter state.
list/list.go:635
↓ 2 callersMethodFilterValue
FilterValue is the value we use when filtering against this item when we're filtering the list.
list/list.go:37
↓ 2 callersMethodFullHelp
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 callersMethodGetContent
GetContent returns the entire content as a single string. Line endings are normalized to '\n'.
viewport/viewport.go:263
↓ 2 callersMethodGetSliceBounds
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 callersMethodGoToEnd
GoToEnd moves to the last page, and last item on the last page.
list/list.go:613
↓ 2 callersMethodGotoBottom
GotoBottom sets the viewport to the bottom position.
viewport/viewport.go:588
↓ 2 callersMethodHash
()
internal/memoization/memoization.go:15
↓ 2 callersMethodHeight
Height returns the height of the file picker.
filepicker/filepicker.go:246
↓ 2 callersMethodIndicator
Indicator returns the rendered open/closed symbol.
tree/node.go:33
↓ 2 callersMethodInit
Init starts the timer.
timer/timer.go:137
↓ 2 callersMethodIsAnimating
IsAnimating returns false if the progress bar reached equilibrium and is no longer animating.
progress/progress.go:446
↓ 2 callersMethodLength
Length returns the number of characters currently in the text input.
textarea/textarea.go:664
↓ 2 callersFunctionNew
New returns a model with default values.
spinner/spinner.go:110
↓ 2 callersMethodNextPage
NextPage moves to the next page, if available.
list/list.go:625
↓ 2 callersMethodOnFirstPage
OnFirstPage returns whether or not we're on the first page.
paginator/paginator.go:121
↓ 2 callersMethodPageDown
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 callersMethodPageUp
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 callersMethodPrevPage
PrevPage moves to the previous page, if available.
list/list.go:619
↓ 2 callersFunctionReplaceNewlines
ReplaceNewlines replaces newline characters by the specified string.
internal/runeutil/runeutil.go:47
↓ 2 callersFunctionReplaceTabs
ReplaceTabs replaces tabs by the specified string.
internal/runeutil/runeutil.go:39
↓ 2 callersMethodReset
Reset sets the input to its default state with no input.
textarea/textarea.go:826
↓ 2 callersMethodSetContentLines
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 callersMethodSetHeight
SetHeight sets the height of the viewport of the table.
table/table.go:331
↓ 2 callersMethodSetHighlights
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 callersMethodSetItems
SetItems sets the items available in the list. This returns a command.
list/list.go:407
↓ 2 callersMethodSetMode
SetMode sets the model's cursor mode. This method returns a command. For available cursor modes, see type CursorMode.
cursor/cursor.go:169
↓ 2 callersMethodSetSize
SetSize sets the width and height of this component.
list/list.go:734
↓ 2 callersMethodSetSpringOptions
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 callersMethodSetVirtualCursor
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 callersMethodSetWidth
SetWidth sets the width of the progress bar.
progress/progress.go:345
↓ 2 callersMethodShortHelp
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 callersMethodShortHelpView
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 callersMethodStart
Start starts the stopwatch.
stopwatch/stopwatch.go:90
↓ 2 callersMethodStart
Start resumes the timer. Has no effect if the timer has timed out.
timer/timer.go:185
↓ 2 callersMethodUnwrap
()
textarea/textarea.go:48
↓ 2 callersMethodView
View renders the viewport into a string.
viewport/viewport.go:725
↓ 2 callersMethodWidth
Width returns the viewport width of the table.
table/table.go:342
↓ 2 callersMethodWidth
Width returns the current width setting.
tree/tree.go:486
↓ 2 callersFunctionWithColors
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 callersMethodYOffset
YOffset returns the vertical offset of the selected node. Useful for scrolling to the selected node using a viewport.
tree/tree.go:639
↓ 2 callersMethodbottomIdx
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 callersFunctionclampPercent
clampPercent keeps invalid progress from entering the spring or bar renderer.
progress/progress.go:437
↓ 2 callersMethodcomputedEndOfBuffer
()
textarea/textarea.go:239
↓ 2 callersMethodcomputedText
()
textarea/textarea.go:255
↓ 2 callersMethodcursorView
()
tree/tree.go:575
↓ 2 callersMethoddeleteAfterCursor
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 callersMethoddeleteBeforeCursor
deleteBeforeCursor deletes all text before the cursor.
textinput/textinput.go:403
↓ 2 callersMethoddeleteSelection
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 callersMethoddeleteWordLeft
deleteWordLeft deletes the word left to the cursor. Returns whether or not the cursor blink should be reset.
textarea/textarea.go:919
↓ 2 callersMethoddeleteWordRight
deleteWordRight deletes the word right to the cursor.
textarea/textarea.go:958
↓ 2 callersMethoddidSelectFile
(msg tea.Msg)
filepicker/filepicker.go:476
↓ 2 callersMethodgetStyle
()
tree/node.go:108
↓ 2 callersMethodgetSuggestions
(sugs [][]rune)
textinput/textinput.go:826
↓ 2 callersMethodgutterWidth
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 callersMethodhelpView
()
list/list.go:1284
↓ 2 callersMethodhelpView
()
tree/tree.go:586
↓ 2 callersMethoditemsAsFilterItems
()
list/list.go:757
↓ 2 callersFunctionkeyPress
(key rune)
textinput/textinput_test.go:188
↓ 2 callersMethodmoveCursorTo
moveCursorTo places the cursor at the given buffer position, clamped to the buffer's bounds.
textarea/selection.go:214
↓ 2 callersMethodnextFrame
()
progress/progress.go:354
↓ 2 callersMethodnextSuggestion
nextSuggestion selects the next suggestion.
textinput/textinput.go:891
↓ 2 callersMethodpaginationView
()
list/list.go:1222
↓ 2 callersMethodpromptView
()
textinput/textinput.go:740
↓ 2 callersMethodreadDir
(path string, showHidden bool)
filepicker/filepicker.go:197
↓ 2 callersFunctionruneIndexes
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 callersMethodsan
rsan initializes or retrieves the rune sanitizer.
textinput/textinput.go:301
↓ 2 callersMethodselectFrom
selectFrom sets the selection anchor and head.
textarea/selection.go:206
↓ 2 callersMethodsetRootStyles
()
tree/tree.go:462
↓ 2 callersMethodsetValueInternal
(runes []rune, err error)
textinput/textinput.go:222
↓ 2 callersMethodshouldAddItem
(totalWidth, width int)
help/help.go:239
↓ 2 callersMethodspinnerView
()
list/list.go:1288
↓ 2 callersFunctionstripString
(str string)
textarea/textarea_test.go:2823
↓ 2 callersFunctiontestHighlights
(tb testing.TB, content string, re *regexp.Regexp, expect []highlightInfo)
viewport/viewport_test.go:632
↓ 2 callersFunctiontick
(id int, tag int, d time.Duration)
stopwatch/stopwatch.go:183
↓ 2 callersMethodtick
()
timer/timer.go:199
↓ 2 callersMethodtotalLineCount
()
textarea/textarea.go:1151
↓ 2 callersMethodtransposeLeft
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 callersMethodupdateVirtualCursorStyle
updateVirtualCursorStyle sets styling on the virtual cursor based on the textarea's style settings.
textarea/textarea.go:505
↓ 2 callersMethodwordLeft
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 callersMethodwordRight
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
← previousnext →201–300 of 843, ranked by callers