MCPcopy Create free account

hub / github.com/charmbracelet/bubbles / functions

Functions843 in github.com/charmbracelet/bubbles

↓ 1 callersFunctionWithSpinner
WithSpinner is an option to set the spinner. Pass this to [Spinner.New].
spinner/spinner.go:200
↓ 1 callersFunctionWithoutPercentage
WithoutPercentage hides the numeric percentage.
progress/progress.go:142
↓ 1 callersMethodWord
Word returns the word at the cursor position. A word is delimited by spaces or line-breaks.
textarea/textarea.go:838
↓ 1 callersFunctionabs
(n int)
textarea/textarea.go:2166
↓ 1 callersFunctionansiStrip
(s string)
table/table_test.go:358
↓ 1 callersMethodarabicView
()
paginator/paginator.go:199
↓ 1 callersMethodatContentLimit
atContentLimit reports whether the textarea has reached its content limit. When MaxContentHeight is set (> 0), it checks total visual lines. Otherwise
textarea/textarea.go:1960
↓ 1 callersMethodbarView
(b *strings.Builder, percent float64, textWidth int)
progress/progress.go:361
↓ 1 callersMethodbefore
before reports whether p sorts before q in the buffer.
textarea/selection.go:19
↓ 1 callersMethodcapitalizeRight
capitalizeRight changes the word to the right to title case.
textarea/textarea.go:1083
↓ 1 callersFunctionclamp
(v, low, high int)
textinput/textinput.go:801
↓ 1 callersMethodcompletionView
(offset, maxWidth int)
textinput/textinput.go:808
↓ 1 callersMethodcomputedCursorLineNumber
()
textarea/textarea.go:232
↓ 1 callersMethodcomputedLineNumber
()
textarea/textarea.go:243
↓ 1 callersMethodcomputedPlaceholder
()
textarea/textarea.go:247
↓ 1 callersMethodcomputedPrompt
()
textarea/textarea.go:251
↓ 1 callersMethodcomputedSelection
()
textarea/textarea.go:259
↓ 1 callersMethodcoords
coords returns the line x column of this highlight.
viewport/highlight.go:129
↓ 1 callersFunctioncountEnabledBindings
(groups [][]key.Binding)
list/list.go:1344
↓ 1 callersMethoddeleteAfterCursor
deleteAfterCursor deletes all text after the cursor. Returns whether or not the cursor blink should be reset. If input is masked delete everything aft
textarea/textarea.go:891
↓ 1 callersMethoddeleteBeforeCursor
deleteBeforeCursor deletes all text before the cursor. Returns whether or not the cursor blink should be reset.
textarea/textarea.go:883
↓ 1 callersMethoddeleteWordBackward
deleteWordBackward deletes the word left to the cursor.
textinput/textinput.go:420
↓ 1 callersMethoddeleteWordForward
deleteWordForward deletes the word right to the cursor. If input is masked delete everything after the cursor so as not to reveal word breaks in the m
textinput/textinput.go:467
↓ 1 callersFunctiondeletesWhole
deletesWhole reports whether Backspace should remove the grapheme as a unit. Emoji and variation sequences are; anything else loses one code point at
textarea/grapheme.go:43
↓ 1 callersMethoddotsView
()
paginator/paginator.go:187
↓ 1 callersMethodechoTransform
(v string)
textinput/textinput.go:558
↓ 1 callersMethodgetEnumeratorStyle
()
tree/node.go:123
↓ 1 callersMethodgetIndenterStyle
()
tree/node.go:134
↓ 1 callersMethodgetItemOpts
()
tree/tree.go:705
↓ 1 callersMethodhandleBrowsing
Updates for when a user is browsing the list.
list/list.go:892
↓ 1 callersMethodhandleFiltering
Updates for when a user is in the filter editing interface.
list/list.go:950
↓ 1 callersMethodhighlightLines
highlightLines highlights the lines with [Model.HighlightStyle] and [Model.SelectedHighlightStyle].
viewport/viewport.go:377
↓ 1 callersFunctioninsertItemIntoSlice
(items []Item, item Item, index int)
list/list.go:1318
↓ 1 callersMethodinsertRunesFromUserInput
(v []rune)
textinput/textinput.go:311
↓ 1 callersMethoditems
()
list/list.go:71
↓ 1 callersMethodlowercaseRight
lowercaseRight changes the word to the right to lowercase.
textarea/textarea.go:1076
↓ 1 callersFunctionmakeHighlightRanges
( highlights []highlightInfo, line int, style lipgloss.Style, )
viewport/highlight.go:140
↓ 1 callersFunctionmaxLineWidth
(lines []string)
viewport/viewport.go:756
↓ 1 callersMethodmaxXOffset
maxXOffset returns the maximum possible value of the x-offset based on the viewport's content and set width.
viewport/viewport.go:307
↓ 1 callersMethodmergeLineAbove
mergeLineAbove merges the current line the cursor is on with the line above.
textarea/textarea.go:2020
↓ 1 callersMethodmergeLineBelow
mergeLineBelow merges the current line the cursor is on with the line below.
textarea/textarea.go:2000
↓ 1 callersFunctionnewStack
()
filepicker/filepicker.go:170
↓ 1 callersFunctionnextID
()
progress/progress.go:28
↓ 1 callersFunctionnextID
()
stopwatch/stopwatch.go:13
↓ 1 callersFunctionnextID
()
cursor/cursor.go:20
↓ 1 callersFunctionnextID
()
filepicker/filepicker.go:22
↓ 1 callersFunctionnextID
()
timer/timer.go:13
↓ 1 callersFunctionnextID
()
spinner/spinner.go:16
↓ 1 callersFunctionnumDigits
numDigits returns the number of digits in an integer.
textarea/textarea.go:2146
↓ 1 callersFunctionparseMatches
parseMatches converts the given matches into highlight ranges. Assumptions: - matches are measured in bytes, e.g. what [regex.FindAllStringIndex] wou
viewport/highlight.go:19
↓ 1 callersMethodpercentageView
(percent float64)
progress/progress.go:427
↓ 1 callersMethodplaceholderView
placeholderView returns the prompt and placeholder, if any.
textarea/textarea.go:1699
↓ 1 callersMethodplaceholderView
placeholderView returns the prompt and placeholder view, if any.
textinput/textinput.go:745
↓ 1 callersMethodpopView
()
filepicker/filepicker.go:193
↓ 1 callersMethodpopulatedView
()
list/list.go:1244
↓ 1 callersMethodpreviousSuggestion
previousSuggestion selects the previous suggestion.
textinput/textinput.go:899
↓ 1 callersMethodpushView
(selected, minimum, maximum int)
filepicker/filepicker.go:187
↓ 1 callersFunctionremoveItemFromSlice
Remove an item from a slice of items at the given index. This runs in O(n).
list/list.go:1335
↓ 1 callersFunctionrepeatSpaces
(n int)
textarea/textarea.go:2141
↓ 1 callersMethodrootStyle
()
tree/tree.go:714
↓ 1 callersFunctionruneIndexForColumn
runeIndexForColumn returns the index of the first rune of the grapheme occupying the given display column within runes, accounting for wide and multi-
textarea/selection.go:40
↓ 1 callersMethodsan
san initializes or retrieves the rune sanitizer.
textarea/textarea.go:872
↓ 1 callersMethodselectionSpanFor
selectionSpanFor returns the half-open rune range [from, to) of the given logical row that is selected, restricted to the wrapped segment covering [ba
textarea/selection.go:226
↓ 1 callersFunctionsendString
(m Model, str string)
textinput/textinput_test.go:218
↓ 1 callersFunctionsetYOffsets
setYOffsets updates each Node's yOffset based on how many items are "above" it, as well as its lineOffset based on how many rendered lines are "above"
tree/tree.go:611
↓ 1 callersMethodsetupGutter
setupGutter sets up the left gutter using [Model.LeftGutterFunc].
viewport/viewport.go:445
↓ 1 callersFunctionshouldRenderColumn
(b []key.Binding)
help/help.go:252
↓ 1 callersMethodsoftWrap
(lines []string, maxWidth, maxHeight, total, ridx, voffset int)
viewport/viewport.go:403
↓ 1 callersFunctionsoftWrappedLineCount
(m Model)
textarea/textarea_test.go:208
↓ 1 callersMethodsplitLine
(row, col int)
textarea/textarea.go:2042
↓ 1 callersMethodstartKeyboardSelection
startKeyboardSelection begins a keyboard-driven selection at the current cursor position if one is not already active.
textarea/textarea.go:1891
↓ 1 callersMethodstyleLines
styleLines styles the lines using [Model.StyleLineFunc].
viewport/viewport.go:365
↓ 1 callersMethodtick
(id, tag int)
spinner/spinner.go:184
↓ 1 callersMethodtimedout
()
timer/timer.go:205
↓ 1 callersMethodupdateAsModel
Author's note: this method has been broken out to make it easier to potentially transition Update to satisfy tea.Model.
viewport/viewport.go:660
↓ 1 callersMethodupdateKeyboardSelection
updateKeyboardSelection updates the selection head to the current cursor position after a keyboard movement.
textarea/textarea.go:1901
↓ 1 callersFunctionupdateWithTick
updateWithTick executes cmd (expected to eventually deliver a TickMsg, possibly wrapped in a batch/sequence by the runtime), feeds the resulting TickM
timer/timer_test.go:397
↓ 1 callersMethoduppercaseRight
uppercaseRight changes the word to the right to uppercase.
textarea/textarea.go:1069
↓ 1 callersMethodvisualLinesForInsert
visualLinesForInsert estimates how many additional visual lines would result from inserting the given lines at the current cursor position. The first
textarea/textarea.go:1970
↓ 1 callersFunctionwithSuffix
withSuffix is a helper to add a temporary suffix to the test name. Primarily useful for golden tests since there is currently no way to have multiple
viewport/viewport_test.go:27
↓ 1 callersMethodwordBackward
wordBackward moves the cursor one word to the left. If input is masked, move input to the start so as not to reveal word breaks in the masked input.
textinput/textinput.go:496
↓ 1 callersMethodwordForward
wordForward moves the cursor one word to the right. If the input is masked, move input to the end so as not to reveal word breaks in the masked input.
textinput/textinput.go:528
MethodAvailableSuggestions
AvailableSuggestions returns the list of available suggestions.
textinput/textinput.go:835
FunctionBenchmarkView
(b *testing.B)
viewport/viewport_test.go:809
FunctionBlink
Blink returns the blink command for the virtual cursor.
textarea/textarea.go:1781
FunctionBlink
Blink is a command used to initialize cursor blinking.
textinput/textinput.go:788
MethodColumns
Columns returns the current columns.
table/table.go:301
MethodCurrentSuggestionIndex
CurrentSuggestionIndex returns the currently selected suggestion index.
textinput/textinput.go:845
MethodCursor
Cursor returns the index of the cursor on the current page.
list/list.go:549
MethodDecrPercent
DecrPercent decrements the percentage by a given amount, returning a command necessary to animate the progress bar to the new percentage. If you're r
progress/progress.go:323
FunctionDefaultFilter
DefaultFilter uses the sahilm/fuzzy to filter through the list. This is set by default.
list/list.go:98
FunctionDefaultLightStyles
DefaultLightStyles returns the default styles for a light background.
textarea/textarea.go:472
FunctionDefaultLightStyles
DefaultLightStyles returns the default styles for a light background.
textinput/styles.go:38
FunctionDefaultLightStyles
DefaultLightStyles returns a set of default styles for light backgrounds.
help/help.go:72
FunctionDefaultLightStyles
DefaultLightStyles returns a set of default styles for light backgrounds.
tree/styles.go:106
MethodDeleteSelection
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:1870
MethodDisableQuitKeybindings
DisableQuitKeybindings is a helper for disabling the keybindings used for quitting, in case you want to handle this elsewhere in your application.
list/list.go:700
MethodEnumerator
Enumerator sets the enumerator implementation. This can be used to change the way the branches indicators look. Lipgloss includes predefined enumerat
tree/node.go:251
MethodEnumeratorStyle
EnumeratorStyle sets a static style for all enumerators. Use EnumeratorStyleFunc to conditionally set styles based on the tree node.
tree/node.go:285
MethodError
()
textinput/textinput_test.go:230
← previousnext →401–500 of 843, ranked by callers