MCPcopy Create free account

hub / github.com/charmbracelet/bubbles / functions

Functions843 in github.com/charmbracelet/bubbles

FunctionExampleValidateFunc
()
textinput/textinput_test.go:143
MethodFilterValue
()
list/list_test.go:17
MethodFilterValue
FilterValue returns the current value of the filter.
list/list.go:640
MethodFilteringEnabled
FilteringEnabled returns whether or not filtering is enabled.
list/list.go:294
MethodFocused
Focused returns the focus state of the table.
table/table.go:233
MethodFullHelp
FullHelp implements the KeyMap interface.
table/table.go:59
MethodFullHelp
FullHelp returns the delegate's full help.
list/defaultitem.go:228
MethodFullHelp
FullHelp returns bindings to show the full help view. It's part of the help.KeyMap interface.
tree/tree.go:543
FunctionFuzzCache
(f *testing.F)
internal/memoization/memoization_test.go:140
MethodGlobalIndex
GlobalIndex returns the index of the currently selected item as it is stored in the unfiltered list of items. This value can be used with SetItem().
list/list.go:538
MethodHash
Hash is a method that returns the hash of the string.
internal/memoization/memoization.go:115
MethodHash
Hash is a method that returns the hash of the integer.
internal/memoization/memoization.go:123
MethodHash
Hash returns a hash of the line.
textarea/textarea.go:271
MethodHeight
Height returns the viewport height of the table.
table/table.go:337
MethodHeight
Height returns the delegate's preferred height. This has effect only if ShowDescription is true, otherwise height is always 1.
list/defaultitem.go:118
MethodHeight
()
list/list_test.go:21
MethodHeight
Height returns the current height setting.
list/list.go:669
MethodHeight
Height returns the current height of the textarea.
textarea/textarea.go:1274
MethodHeight
Height returns the current height setting.
tree/tree.go:491
MethodHeight
Height returns the number of rendered lines of the node.
tree/node.go:59
MethodHelpView
HelpView is a helper method for rendering the help menu from the keymap. Note that this view is not rendered by default and you must call it manually
table/table.go:258
MethodHidden
Hidden returns whether this item is hidden.
tree/node.go:196
MethodHighlightNext
HighlightNext highlights the next match.
viewport/viewport.go:626
MethodHighlightPrevious
HighlightPrevious highlights the previous match.
viewport/viewport.go:635
MethodHighlightedPath
HighlightedPath returns the path of the currently highlighted file or directory.
filepicker/filepicker.go:534
MethodHorizontalScrollPercent
HorizontalScrollPercent returns the amount horizontally scrolled as a float between 0 and 1.
viewport/viewport.go:211
MethodID
ID returns the unique ID of the model.
stopwatch/stopwatch.go:80
MethodID
ID returns the spinner's unique ID.
spinner/spinner.go:105
MethodIncrPercent
IncrPercent increments 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:315
MethodIndenter
Indenter sets the indenter implementation. This is used to change the way the tree is indented. The default indentor places a border connecting siblin
tree/node.go:277
MethodIndenterStyle
IndenterStyle sets a static style for all indenters. Use IndenterStyleFunc to conditionally set styles based on the tree node.
tree/node.go:314
MethodInit
Init exists to satisfy the tea.Model interface.
progress/progress.go:256
MethodInit
Init starts the stopwatch.
stopwatch/stopwatch.go:85
MethodInit
Init exists to satisfy the tea.Model interface for composability purposes.
viewport/viewport.go:158
MethodInsertItem
InsertItem inserts an item at the given index. If the index is out of the upper bound, the item will be appended. This returns a command.
list/list.go:452
MethodIsFiltered
IsFiltered returns whether or not the list is currently filtered. It's purely a convenience method for the following: m.FilterState() == FilterAppli
list/list.go:659
FunctionIsHidden
IsHidden reports whether a file is hidden or not.
filepicker/hidden_windows.go:11
MethodIsSelected
IsSelected returns whether this item is selected.
tree/node.go:48
MethodItemStyle
ItemStyle sets a static style for all items.
tree/node.go:219
MethodItems
Items returns the items in the list.
list/list.go:402
FunctionNewDefaultDelegate
NewDefaultDelegate creates a new delegate with default styles.
list/defaultitem.go:97
FunctionNewMemoCache
NewMemoCache is a function that creates a new MemoCache with a given capacity. It returns a pointer to the created MemoCache.
internal/memoization/memoization.go:38
MethodNewStatusMessage
NewStatusMessage sets a new status message, which will show for a limited amount of time. Note that this also returns a command.
list/list.go:708
MethodNode
Node returns the item at the given yoffset.
tree/tree.go:650
MethodOpen
Open opens the node.
tree/node.go:84
MethodPastBottom
PastBottom returns whether or not the viewport is scrolled beyond the last line. This can happen when adjusting the viewport height.
viewport/viewport.go:195
FunctionPaste
Paste is a command for pasting from the clipboard into the text input.
textarea/textarea.go:2060
FunctionPaste
Paste is a command for pasting from the clipboard into the text input.
textinput/textinput.go:793
MethodPosition
Position returns the cursor position.
textinput/textinput.go:244
MethodRender
Render prints an item.
list/defaultitem.go:144
MethodRender
(w io.Writer, m Model, index int, listItem Item)
list/list_test.go:24
MethodReset
Reset resets the stopwatch to 0.
stopwatch/stopwatch.go:112
MethodReset
Reset sets the input to its default state with no input.
textinput/textinput.go:285
MethodResetFilter
ResetFilter resets the current filtering state.
list/list.go:433
MethodResetSelected
ResetSelected resets the selected item to the first item in the first page of the list.
list/list.go:428
MethodRows
Rows returns the current rows.
table/table.go:296
MethodSanitize
(runes []rune)
internal/runeutil/runeutil.go:54
MethodScrollPercent
ScrollPercent returns the amount of the textarea that is currently scrolled through, clamped between 0 and 1.
textarea/textarea.go:696
MethodSelectedItem
SelectedItem returns the current selected item in the list.
list/list.go:506
MethodSelectedRow
SelectedRow returns the selected row. You can cast it to your own implementation.
table/table.go:287
MethodSetAdditionalFullHelpKeys
SetAdditionalFullHelpKeys sets additional key mappings for the full help view. This allows you to add additional key mappings to the help menu without
tree/tree.go:267
MethodSetClosedCharacter
SetClosedCharacter sets the character used to represent a closed node.
tree/tree.go:232
MethodSetCursorCharacter
SetCursorCharacter sets the character used to represent the cursor.
tree/tree.go:237
MethodSetDelegate
SetDelegate sets the item delegate.
list/list.go:492
MethodSetFilteringEnabled
SetFilteringEnabled enables or disables filtering. Note that this is different from ShowFilter, which merely hides or shows the input view.
list/list.go:285
MethodSetHeight
SetHeight sets delegate's preferred height.
list/defaultitem.go:111
MethodSetHeight
SetHeight sets the height of this component.
list/list.go:729
MethodSetHeight
SetHeight sets the height of the viewport.
viewport/viewport.go:168
MethodSetHelp
SetHelp sets the help text for the keybinding.
key/key.go:94
MethodSetHidden
SetHidden hides/shows a Tree node.
tree/node.go:201
MethodSetItem
SetItem replaces an item at the given index. This returns a command.
list/list.go:438
MethodSetKeys
SetKeys sets the keys for the keybinding.
key/key.go:84
MethodSetOpenCharacter
SetOpenCharacter sets the character used to represent an open node.
tree/tree.go:227
MethodSetPromptFunc
SetPromptFunc supersedes the Prompt field and sets a dynamic prompt instead. If the function returns a prompt that is shorter than the specified prom
textarea/textarea.go:1268
MethodSetScrollOff
SetScrollOff sets the minimal number of lines to keep visible above and below the selected node.
tree/tree.go:222
MethodSetShowFilter
SetShowFilter shows or hides the filter bar. Note that this does not disable filtering, it simply hides the built-in filter view. This allows you to u
list/list.go:341
MethodSetShowHelp
SetShowHelp shows or hides the help view.
list/list.go:391
MethodSetShowPagination
SetShowPagination hides or shows the paginator. Note that pagination will still be active, it simply won't be displayed.
list/list.go:380
MethodSetShowStatusBar
SetShowStatusBar shows or hides the view that displays metadata about the list, such as item counts.
list/list.go:356
MethodSetShowTitle
SetShowTitle shows or hides the title bar.
list/list.go:299
MethodSetSpacing
SetSpacing sets the delegate's spacing.
list/defaultitem.go:126
MethodSetSpinner
SetSpinner allows to set the spinner style.
list/list.go:674
MethodSetStyles
SetStyles sets the table styles.
table/table.go:122
MethodSetStyles
SetStyles sets the styles for the text input.
textinput/textinput.go:197
MethodSetViewportYOffset
SetViewportYOffset sets the vertical offset of the tree's viewport.
tree/tree.go:633
MethodSetWidth
SetWidth sets the width of the viewport.
viewport/viewport.go:178
MethodSettingFilter
SettingFilter returns whether or not the user is currently editing the filter value. It's purely a convenience method for the following: m.FilterSta
list/list.go:651
MethodShortHelp
ShortHelp implements the KeyMap interface.
table/table.go:54
MethodShortHelp
ShortHelp returns the delegate's short help.
list/defaultitem.go:220
MethodShortHelp
ShortHelp returns bindings to show in the abbreviated help view. It's part of the help.KeyMap interface.
list/list.go:1006
MethodShortHelp
ShortHelp returns bindings to show in the abbreviated help view. It's part of the help.KeyMap interface.
tree/tree.go:525
MethodShowFilter
ShowFilter returns whether or not the filter is set to be rendered. Note that this is separate from FilteringEnabled, so filtering can be hidden yet s
list/list.go:350
MethodShowHelp
ShowHelp returns whether or not the help is set to be rendered.
list/list.go:397
MethodShowPagination
ShowPagination returns whether the pagination is visible.
list/list.go:386
MethodShowStatusBar
ShowStatusBar returns whether or not the status bar is set to be rendered.
list/list.go:362
MethodShowTitle
ShowTitle returns whether or not the title bar is set to be rendered.
list/list.go:331
MethodSize
Size is a method that returns the current size of the MemoCache. It is the number of items currently stored in the cache.
internal/memoization/memoization.go:54
MethodSpacing
Spacing returns the delegate's spacing.
list/defaultitem.go:131
MethodSpacing
()
list/list_test.go:22
MethodStatusBarItemName
StatusBarItemName returns singular and plural status bar item names.
list/list.go:374
← previousnext →501–600 of 843, ranked by callers