class

Bubbles::Textarea::Model

Inherits Reference < Object

Constructors

Class methods

paste

Paste is a command for pasting from the clipboard into the text input. Ported exactly from Go: vendor/bubbles/textarea/textarea.go:1691

Source

Instance methods

blur

Blur removes the focus state on the model. When the model is blurred it can not receive keyboard input and the cursor will be hidden. Ported exactly from Go: vendor/bubbles/textarea/textarea.go:731

Source
char_limit
Source
char_limit=(char_limit : Int32)
Source
col=(col : Int32)
Source
column
Source
cursor

Cursor returns a Tea cursor for real-cursor rendering. Ported from Go: vendor/bubbles/textarea/textarea.go:Cursor.

Source
cursor_column=(c : Int32)
Source
cursor_down
Source
cursor_end

cursorEnd moves the cursor to the end of the input field.

Source
cursor_line_number

cursorLineNumber returns the line number that the cursor is on. This accounts for soft wrapped lines. Ported exactly from Go: vendor/bubbles/textarea/textarea.go:1619

Source
cursor_start

cursorStart moves the cursor to the start of the input field.

Source
cursor_up
Source
dynamic_height=(dynamic_height : Bool)
Source
dynamic_height?
Source
end_of_buffer_character
Source
end_of_buffer_character=(end_of_buffer_character : Char)
Source
err=(err : Exception | Nil)
Source
focus

Focus sets the focus state on the model. When the model is in focus it can receive keyboard input and the cursor will be hidden. Ported exactly from Go: vendor/bubbles/textarea/textarea.go:724

Source
focused

Focused returns the focus state on the model. Ported exactly from Go: vendor/bubbles/textarea/textarea.go:709

Source
height

Height returns the height of the textarea. Ported exactly from Go: vendor/bubbles/textarea/textarea.go:1054

Source
height=(h : Int32)
Source
init

init initializes the model.

Source
insert_rune(r : Char)

insertRune inserts a single rune at the cursor position. Ported exactly from Go: vendor/bubbles/textarea/textarea.go:462

Source
insert_string(s : String)

insertString inserts a string at the cursor position. Ported exactly from Go: vendor/bubbles/textarea/textarea.go:455

Source
key_map

keyMap returns the current key bindings. Ported exactly from Go: vendor/bubbles/textarea/textarea.go (KeyMap field access).

Source
key_map=(km : KeyMap)
Source
length
Source
line
Source
line_count
Source
line_info

LineInfo returns the number of characters from the start of the (soft-wrapped) line and the (soft-wrapped) line width. Ported exactly from Go: vendor/bubbles/textarea/textarea.go:992

Source
max_content_height
Source
max_content_height=(max_content_height : Int32)
Source
max_height
Source
max_height=(max_height : Int32)
Source
max_width
Source
max_width=(max_width : Int32)
Source
min_height
Source
min_height=(min_height : Int32)
Source
move_to_begin

MoveToBegin moves the cursor to the beginning of the textarea. Ported exactly from Go: vendor/bubbles/textarea/textarea.go:1060

Source
move_to_end

MoveToEnd moves the cursor to the end of the textarea. Ported exactly from Go: vendor/bubbles/textarea/textarea.go:1066

Source
page_down

PageDown moves the cursor one page down. Ported exactly from Go: vendor/bubbles/textarea/textarea.go:1077

Source
page_up

PageUp moves the cursor one page up. Ported exactly from Go: vendor/bubbles/textarea/textarea.go:1072

Source
placeholder
Source
placeholder=(placeholder : String)
Source
prompt
Source
prompt=(prompt : String)
Source
prompt_func=(fn : PromptInfo -> String)
Source
reset

reset sets the input to its default state with no input.

Source
row=(row : Int32)
Source
scroll_y_offset
Source
set_cursor_column(c : Int32)
Source
set_height(h : Int32)
Source
set_key_map(km : KeyMap)

setKeyMap updates key bindings.

Source
set_prompt_func(prompt_width : Int32, fn : PromptInfo -> String)
Source
set_show_line_numbers(v : Bool)
Source
set_styles(s : Styles)

setStyles updates styling for the textarea.

Source
set_value(s : String)
Source
set_virtual_cursor(v : Bool)

setVirtualCursor sets whether or not to use the virtual cursor.

Source
set_width(w : Int32)
Source
show_line_numbers

showLineNumbers controls whether line numbers are rendered.

Source
show_line_numbers=(v : Bool)
Source
show_line_numbers?
Source
styles

styles returns the current styles for the textarea.

Source
styles=(s : Styles)
Source
total_visual_lines

totalVisualLines returns the total number of display lines across all logical lines, accounting for soft wraps. Ported from Go: vendor/bubbles/textarea/textarea.go:1666 (v2.1.0)

Source
update(msg : Tea::Msg) : Tuple(Model, Tea::Cmd | Nil)

Update handles messages and updates the model. Ported exactly from Go: vendor/bubbles/textarea/textarea.go:1169

Source
value
Source
value=(s : String)
Source
view

View returns the rendered view of the textarea with viewport. Ported exactly from Go: vendor/bubbles/textarea/textarea.go:1415

Source
viewport
Source
viewport=(viewport : Bubbles::Viewport::Model)
Source
virtual_cursor

virtualCursor returns whether or not the virtual cursor is enabled.

Source
virtual_cursor=(v : Bool)
Source
virtual_cursor?
Source
width

Width returns the width of the textarea. Ported exactly from Go: vendor/bubbles/textarea/textarea.go:1049

Source
width=(w : Int32)
Source
word
Source