Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(v2) merge textarea API updates into v2-area #722

Merged
merged 24 commits into from
Feb 1, 2025
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
87a4e45
docs: additional bubbles (#583)
caarlos0 Jan 17, 2025
e3ce11a
docs: update charm & friends blurb (#703)
bashbunni Jan 17, 2025
7ab08fb
fix(viewport): scroll to last line when borders (#706)
caarlos0 Jan 21, 2025
1bdd4c6
fix: stopwatch.Start() (#707)
bevicted Jan 22, 2025
518ff7d
feat(textarea): add Cursor method (#712)
aymanbagabas Jan 23, 2025
421843b
chore(merge): branch 'master' into v2-exp
meowgorithm Jan 28, 2025
a0d9fe3
refactor: progress: return Model instead of tea.Model (#719)
aymanbagabas Jan 29, 2025
9d5d140
chore(textarea,cursor): flesh out real cursor API
meowgorithm Jan 28, 2025
7cdd5f3
chore(textarea,cursor): use textarea to manage virtual cursor styling
meowgorithm Jan 28, 2025
0b3c0a2
fix(textarea): doc comment
meowgorithm Jan 28, 2025
58b94b3
fix(textarea): doc comment typo
meowgorithm Jan 28, 2025
0e5ff3c
chore(textarea): rename Model.SetCursor to Model.SetCursorColumn
meowgorithm Jan 28, 2025
eb985a2
chore(textarea): improve cursor styling API
meowgorithm Jan 28, 2025
1fd9c26
chore(textarea,cursor): simplify cursor API
meowgorithm Jan 29, 2025
ad8e4bf
chore(textarea): improve comments, note ares that need attention
meowgorithm Jan 29, 2025
24016e6
chore(textarea): consolidate line number rendering into a method
meowgorithm Jan 30, 2025
de97754
fix(textarea): infer if we should use focused or blurred styles
meowgorithm Jan 30, 2025
63fb8c6
fix(textarea): don't hardcode line number gutter width
meowgorithm Jan 30, 2025
a6b8a45
chore(textarea): consolidate prompt rendering in a method
meowgorithm Jan 30, 2025
78262b8
chore(textarea): make placeholder rendering more readable
meowgorithm Jan 30, 2025
2824966
feat(textarea): auto-calculate inner X/Y cursor offset
meowgorithm Jan 30, 2025
841c9ce
chore(textarea): comments and cleanup
meowgorithm Jan 30, 2025
b2e3cc5
chore(textarea): account for margins and padding in cursor offsets
meowgorithm Jan 31, 2025
88778ca
chore(merge): branch 'v2-exp' into v2-area-textarea-api-updates
meowgorithm Jan 31, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(textarea): doc comment
Co-authored-by: Ayman Bagabas <ayman.bagabas@gmail.com>
meowgorithm and aymanbagabas committed Jan 31, 2025
commit 0b3c0a26533e8002b4107c471a65d7b628795811
2 changes: 1 addition & 1 deletion textarea/textarea.go
Original file line number Diff line number Diff line change
@@ -1412,7 +1412,7 @@ func Blink() tea.Msg {
//
// // In your top-level View function:
// f := tea.NewFrame(m.textarea.View())
// f.Cursor = m.textarea.RealCursor()
// f.Cursor = m.textarea.Cursor()
// f.Cursor.Position.X += offsetX
// f.Cursor.Position.Y += offsetY
//