MCPcopy Create free account

hub / github.com/charmbracelet/bubbles / functions

Functions843 in github.com/charmbracelet/bubbles

↓ 5 callersMethodInit
Init initializes the file picker model.
filepicker/filepicker.go:251
↓ 5 callersMethodLine
Line returns the 0-indexed row position of the cursor.
textarea/textarea.go:679
↓ 5 callersMethodLineCount
LineCount returns the number of lines that are currently in the text input.
textarea/textarea.go:674
↓ 5 callersMethodMode
Mode returns the model's cursor mode. For available cursor modes, see type Mode.
cursor/cursor.go:162
↓ 5 callersMethodMoveUp
MoveUp moves the selection up by any number of rows. It can not go above the first row.
table/table.go:371
↓ 5 callersMethodName
()
viewport/viewport_test.go:20
↓ 5 callersFunctionNew
New returns a new filepicker model with default styling and key bindings.
filepicker/filepicker.go:27
↓ 5 callersMethodSelectAll
SelectAll selects the entire buffer.
textarea/selection.go:136
↓ 5 callersMethodSetEnabled
SetEnabled enables or disables the keybinding.
key/key.go:111
↓ 5 callersMethodSetRows
SetRows sets a new rows state.
table/table.go:306
↓ 5 callersMethodSetSize
SetSize sets the width and height of this component.
tree/tree.go:506
↓ 5 callersMethodView
View renders the component.
list/list.go:1081
↓ 5 callersMethodWidth
Width returns the width of the viewport.
viewport/viewport.go:173
↓ 5 callersFunctionclamp
(v, low, high T)
viewport/viewport.go:749
↓ 5 callersFunctionfilterItems
(m Model)
list/list.go:1292
↓ 5 callersMethodfindNearestMatch
()
viewport/viewport.go:643
↓ 5 callersFunctionnewTestDir
newTestDir creates a directory containing a subdirectory with a file in it.
filepicker/filepicker_test.go:13
↓ 5 callersMethodrenderRow
(r int)
table/table.go:454
↓ 5 callersMethodresetFiltering
()
list/list.go:745
↓ 5 callersMethodstatusView
()
list/list.go:1175
↓ 5 callersFunctionupdate
update sends msg to the model and runs the returned command, if any, feeding its message back into the model.
filepicker/filepicker_test.go:28
↓ 4 callersMethodAtTop
AtTop returns whether or not the viewport is at the very top position.
viewport/viewport.go:183
↓ 4 callersFunctionDefaultStyles
DefaultStyles returns a set of default style definitions for this table.
table/table.go:113
↓ 4 callersMethodFullHelpView
FullHelpView renders help columns from a slice of key binding slices. Each top level slice entry renders into a column.
help/help.go:171
↓ 4 callersMethodGoToStart
GoToStart moves to the first page, and first item on the first page.
list/list.go:607
↓ 4 callersMethodMoveDown
MoveDown moves the selection down by any number of rows. It can not go below the last row.
table/table.go:394
↓ 4 callersMethodMoveToBegin
MoveToBegin moves the cursor to the beginning of the input.
textarea/textarea.go:1170
↓ 4 callersMethodSanitize
Sanitize removes control characters from runes in a KeyRunes message, and optionally replaces newline/carriage return/tabs by a specified character.
internal/runeutil/runeutil.go:20
↓ 4 callersMethodScrollRight
ScrollRight moves viewport to the right by the given number of columns.
viewport/viewport.go:562
↓ 4 callersMethodScrollUp
ScrollUp moves the view up by the given number of lines.
viewport/viewport.go:527
↓ 4 callersMethodSelection
Selection returns the selected range, normalized so start sorts before end, and whether a non-empty selection is active.
textarea/selection.go:163
↓ 4 callersMethodSetChar
SetChar sets the character under the cursor.
cursor/cursor.go:231
↓ 4 callersMethodSetHeight
SetHeight sets the height of the file picker.
filepicker/filepicker.go:228
↓ 4 callersMethodSetNodes
SetNodes sets the tree to the given root node.
tree/tree.go:242
↓ 4 callersMethodSetPercent
SetPercent sets the percentage state of the model as well as a command necessary for animating the progress bar to this new percentage. Values are cla
progress/progress.go:305
↓ 4 callersMethodSetValue
SetValue sets the value of the node.
tree/node.go:162
↓ 4 callersMethodSetWidth
SetWidth sets the maximum width for the help view.
help/help.go:116
↓ 4 callersMethodSetXOffset
SetXOffset sets the X offset. No-op when soft wrap is enabled.
viewport/viewport.go:549
↓ 4 callersMethodTick
Tick is the command used to advance the spinner one frame. Use this command to effectively start the spinner.
spinner/spinner.go:170
↓ 4 callersFunctionWithInterval
WithInterval is an option for setting the interval between ticks. Pass as an argument to [New].
stopwatch/stopwatch.go:24
↓ 4 callersFunctionWithPerPage
WithPerPage sets the total pages.
paginator/paginator.go:156
↓ 4 callersFunctionWithTotalPages
WithTotalPages sets the total pages.
paginator/paginator.go:149
↓ 4 callersMethodactiveStyle
activeStyle returns the appropriate set of styles to use depending on whether the textarea is focused or blurred.
textinput/textinput.go:977
↓ 4 callersMethodcharacterRight
characterRight moves the cursor one character to the right.
textarea/textarea.go:988
↓ 4 callersFunctionclamp
(v, low, high int)
table/table.go:477
↓ 4 callersMethoddoWordRight
(fn func(charIdx int, pos int))
textarea/textarea.go:1047
↓ 4 callersMethodsetCursorLineRelative
setCursorLineRelative moves the cursor by the given number of lines. Negative values move the cursor up, positive values move the cursor down.
textarea/textarea.go:702
↓ 4 callersMethodupdateSuggestions
updateSuggestions refreshes the list of matching suggestions.
textinput/textinput.go:865
↓ 3 callersMethodAtBottom
AtBottom returns whether or not the viewport is at or past the very bottom position.
viewport/viewport.go:189
↓ 3 callersMethodColumn
Column returns the 0-indexed column position of the cursor.
textarea/textarea.go:684
↓ 3 callersMethodCursorDown
CursorDown moves the cursor down by one line.
textarea/textarea.go:765
↓ 3 callersMethodCursorUp
CursorUp moves the cursor up by one line.
textarea/textarea.go:770
↓ 3 callersFunctionDefaultDarkStyles
DefaultDarkStyles returns a set of default styles for dark backgrounds.
tree/styles.go:101
↓ 3 callersFunctionDefaultStyles
DefaultStyles returns the default styles for focused and blurred states for the textarea.
textinput/styles.go:13
↓ 3 callersMethodDidSelectFile
DidSelectFile returns whether a user has selected a file (on this msg).
filepicker/filepicker.go:457
↓ 3 callersMethodFocus
Focus focuses the table, allowing the user to move around the rows and interact.
table/table.go:239
↓ 3 callersMethodFromValues
FromValues create the table rows from a simple string. It uses `\n` by default for getting all the rows and the given separator for the fields on each
table/table.go:428
↓ 3 callersMethodGet
Get is a method that returns the value associated with the given hashable item in the MemoCache. If there is no corresponding value, the method return
internal/memoization/memoization.go:63
↓ 3 callersMethodGivenValue
GivenValue returns the value passed to the node.
tree/node.go:157
↓ 3 callersMethodHeight
Height returns the height of the viewport.
viewport/viewport.go:163
↓ 3 callersMethodHelp
Help returns the Help information for the keybinding.
key/key.go:99
↓ 3 callersMethodInsertString
InsertString inserts a string at the cursor position.
textarea/textarea.go:534
↓ 3 callersMethodItemsOnPage
ItemsOnPage is a helper function for returning the number of items on the current page given the total number of items passed as an argument.
paginator/paginator.go:78
↓ 3 callersFunctionNew
New returns a model with default values.
progress/progress.go:232
↓ 3 callersFunctionNew
New creates a new model with default settings.
cursor/cursor.go:100
↓ 3 callersFunctionNewNode
NewNode returns a new node.
tree/node.go:386
↓ 3 callersFunctionNewSanitizer
NewSanitizer constructs a rune sanitizer.
internal/runeutil/runeutil.go:24
↓ 3 callersMethodOnLastPage
OnLastPage returns whether or not we're on the last page.
paginator/paginator.go:116
↓ 3 callersMethodPercent
Percent returns the current visible percentage on the model. This is only relevant when you're animating the progress bar. If you're rendering with V
progress/progress.go:296
↓ 3 callersMethodRoot
Root returns the root node of the tree. Equivalent to calling `Model.Node(0)`.
tree/tree.go:592
↓ 3 callersMethodScrollLeft
ScrollLeft moves the viewport to the left by the given number of columns.
viewport/viewport.go:557
↓ 3 callersMethodSet
Set is a method that sets the value for the given hashable item in the MemoCache. If the cache is at capacity, it evicts the least recently used item
internal/memoization/memoization.go:79
↓ 3 callersMethodSetCursor
SetCursor sets the cursor position in the table.
table/table.go:352
↓ 3 callersMethodSetFilterState
SetFilterState allows setting the filtering state manually.
list/list.go:322
↓ 3 callersMethodSetFilterText
SetFilterText explicitly sets the filter text without relying on user input. It also sets the filterState to a sane default of FilterApplied, but this
list/list.go:307
↓ 3 callersMethodSpacing
Spacing is the size of the horizontal gap between list items in cells.
list/list.go:54
↓ 3 callersMethodStop
Stop pauses the timer. Has no effect if the timer has timed out.
timer/timer.go:190
↓ 3 callersMethodString
String returns a human-readable string of the current filter state.
list/list.go:165
↓ 3 callersMethodViewAs
ViewAs renders the progress bar with a given percentage. Values are clamped to [0, 1]; NaN is treated as zero.
progress/progress.go:335
↓ 3 callersMethodWidth
Width returns the current width setting.
list/list.go:664
↓ 3 callersMethodWidth
Width returns the width of the text input.
textinput/textinput.go:203
↓ 3 callersMethodWidth
Width returns the maximum width for the help view.
help/help.go:121
↓ 3 callersFunctionWithStyles
WithStyles sets the table styles.
table/table.go:188
↓ 3 callersMethodcalculateLine
calculateLine taking soft wrapping into account, returns the total viewable lines and the real-line index for the given yoffset, as well as the virtua
viewport/viewport.go:270
↓ 3 callersMethodcanAcceptSuggestion
canAcceptSuggestion returns whether there is an acceptable suggestion to autocomplete the current value.
textinput/textinput.go:860
↓ 3 callersMethodcanSelect
(file string)
filepicker/filepicker.go:520
↓ 3 callersMethodcharacterLeft
characterLeft moves the cursor one character to the left. If insideLine is set, the cursor is moved to the last character in the previous line, instea
textarea/textarea.go:1003
↓ 3 callersFunctionclamp
(v, low, high T)
list/list.go:26
↓ 3 callersMethodcomputedCursorLine
()
textarea/textarea.go:228
↓ 3 callersMethodhandleOverflow
If a max width is defined, perform some logic to treat the visible area as a horizontally scrolling viewport.
textinput/textinput.go:359
↓ 3 callersMethodheadersView
()
table/table.go:441
↓ 3 callersMethodhideStatusMessage
()
list/list.go:850
↓ 3 callersMethodinsertRunesFromUserInput
insertRunesFromUserInput inserts runes at the current cursor position.
textarea/textarea.go:546
↓ 3 callersMethodlineNumberView
lineNumberView renders the line number. If the argument is less than 0, a space styled as a line number is returned instead. Such cases are used for
textarea/textarea.go:1672
↓ 3 callersMethodmaxWidth
maxWidth returns the maximum width of the viewport. It accounts for the frame size, in addition to the gutter size.
viewport/viewport.go:313
↓ 3 callersMethodpromptView
promptView renders a single line of the prompt.
textarea/textarea.go:1649
↓ 3 callersMethodsetInitialValues
()
viewport/viewport.go:148
↓ 3 callersMethodsetYOffsets
()
tree/tree.go:604
↓ 3 callersMethodshowHighlight
()
viewport/viewport.go:617
↓ 3 callersMethodstartStop
(v bool)
timer/timer.go:214
← previousnext →101–200 of 843, ranked by callers