This feature release includes a brand new textarea bubble that you can use to input as many lines of text as your heart desires (or until your computer memory runs out, whichever comes first).
See the example code for a simple example of how to use the textarea in your Bubble Tea applications.
Customization
There are a few ways to customize the text area.
SetHeight(height int): tells the component how many lines of text it should display at once.
SetWidth(width int): tells the component how wide the it should be.
ShowLineNumbers: whether or not to show line numbers on the left-hand side of a line of text.
Prompt: the prompt to display on the left-hand side.
EndOfBufferCharacter: the character to display as the line number after the last line to fill the rest of the height. Defaults to ~.
CharLimit: Prevents users from typing more than a set number of characters.
KeyMap: The set of keybindings to navigate and interact with the textarea.
Styling
The textarea can be customized heavily with Lip Gloss.
FocusedStyles: the styles to be applied while the textarea is focused.
BlurredStyles: the styles to be applied while the textarea is focused.
Each of the above properties has the below sub-properties that can be modified.
Base lipgloss.Style
CursorLine lipgloss.Style
CursorLineNumber lipgloss.Style
EndOfBuffer lipgloss.Style
LineNumber lipgloss.Style
Placeholder lipgloss.Style
Prompt lipgloss.Style
Text lipgloss.Style
See the split editors example for how to style the textarea component.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps github.com/charmbracelet/bubbles from 0.10.0 to 0.13.0.
Release notes
Sourced from github.com/charmbracelet/bubbles's releases.
... (truncated)
Commits
3a34fc4
fix(textarea): Add deleteWordRight2a2fb10
fix(textarea): account for base styling frame when calculating width588393f
fix(textinput): set cursor on initial value7cc5786
feat(spinners): Construct new spinners withWithSpinner
+WithStyle
optio...3899e1b
fix(list): Disable Quit Key (#104)4c17624
fix(timer): stop should returncmd
(#138)2fd583c
feat(textarea): Add multi-line text input42f85b4
docs: fix paginator example link (#177)4d0a0ea
docs(spinner): correct comment about internal ID (#171)658a4fe
feat: new Hamburger + Meter spinners (#172)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)