Carlos Alexandro Becker
f3bfbb2d68
wip(textarea): using viewport's left gutter func
2025-02-04 15:30:39 -03:00
Christian Rocha
644c7b3398
chore(textarea): move completion check
2025-02-01 07:19:54 -05:00
Christian Rocha
88778ca59d
chore(merge): branch 'v2-exp' into v2-area-textarea-api-updates
2025-01-31 16:50:34 -05:00
Christian Rocha
b2e3cc5371
chore(textarea): account for margins and padding in cursor offsets
2025-01-31 16:21:17 -05:00
Christian Rocha
841c9ce98c
chore(textarea): comments and cleanup
2025-01-31 16:21:17 -05:00
Christian Rocha
2824966855
feat(textarea): auto-calculate inner X/Y cursor offset
2025-01-31 16:21:17 -05:00
Christian Rocha
78262b85c3
chore(textarea): make placeholder rendering more readable
2025-01-31 16:21:17 -05:00
Christian Rocha
a6b8a4559c
chore(textarea): consolidate prompt rendering in a method
2025-01-31 16:21:17 -05:00
Christian Rocha
63fb8c67e7
fix(textarea): don't hardcode line number gutter width
2025-01-31 16:21:17 -05:00
Christian Rocha
de97754f09
fix(textarea): infer if we should use focused or blurred styles
2025-01-31 16:21:17 -05:00
Christian Rocha
24016e6ce4
chore(textarea): consolidate line number rendering into a method
2025-01-31 16:21:17 -05:00
Christian Rocha
ad8e4bf480
chore(textarea): improve comments, note ares that need attention
2025-01-31 16:21:17 -05:00
Christian Rocha
1fd9c2666a
chore(textarea,cursor): simplify cursor API
2025-01-31 16:21:17 -05:00
Christian Rocha
eb985a2f81
chore(textarea): improve cursor styling API
2025-01-31 16:21:17 -05:00
Christian Rocha
0e5ff3c5c3
chore(textarea): rename Model.SetCursor to Model.SetCursorColumn
...
Set.CursorColumn sets the cursor column position. This change was made
for clarity.
2025-01-31 16:21:17 -05:00
Christian Rocha and Ayman Bagabas
58b94b31e8
fix(textarea): doc comment typo
...
Co-authored-by: Ayman Bagabas <ayman.bagabas@gmail.com >
2025-01-31 16:21:17 -05:00
Christian Rocha and Ayman Bagabas
0b3c0a2653
fix(textarea): doc comment
...
Co-authored-by: Ayman Bagabas <ayman.bagabas@gmail.com >
2025-01-31 16:21:17 -05:00
Christian Rocha
7cdd5f37fe
chore(textarea,cursor): use textarea to manage virtual cursor styling
2025-01-31 16:21:17 -05:00
Christian Rocha
9d5d140b3c
chore(textarea,cursor): flesh out real cursor API
2025-01-31 16:21:17 -05:00
518ff7d0d0
feat(textarea): add Cursor method ( #712 )
...
* feat(textarea): add CursorPosition method
This returns the current cursor position accounting any soft-wrapped
lines and multi-rune characters.
* chore(textarea): redefine how real cursor properties are accessed (#714 )
---------
Co-authored-by: Christian Rocha <christian@rocha.is >
2025-01-23 16:37:07 -05:00
Ayman Bagabas and GitHub
3ba296c534
(v2) Revert cursor position from v2-area ( #709 )
...
* chore: revert "wip"
This reverts commit d020289a27 , reversing
changes made to c288adf7ab .
* chore: revert "feat(textarea): add SetOffset and CursorPosition methods"
This reverts commit afbb7bc049 .
* chor: revert "fix(textarea): respect double-width characters in real cursor position"
This reverts commit 804c370801 .
* chore: revert "feat(textarea): use a real cursor position"
This reverts commit 8c3085a6cd .
2025-01-23 11:49:34 -05:00
Ayman Bagabas
d020289a27
wip
2024-11-26 15:00:40 -05:00
Carlos Alexandro Becker and Christian Rocha
c288adf7ab
fix: fmt
2024-11-26 14:17:28 -05:00
Ayman Bagabas and Christian Rocha
afbb7bc049
feat(textarea): add SetOffset and CursorPosition methods
2024-11-26 14:17:28 -05:00
Carlos Alexandro Becker and Christian Rocha
4c214e0848
feat: formatter
2024-11-26 14:17:28 -05:00
Carlos Alexandro Becker and Christian Rocha
56f7197cd3
fix: move to last line on accept
2024-11-26 14:17:28 -05:00
Carlos Alexandro Becker and Christian Rocha
4755f88132
fix: comp
2024-11-26 14:17:28 -05:00
Carlos Alexandro Becker and Christian Rocha
ca9cbbc99e
wip
...
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
2024-11-26 14:17:28 -05:00
Carlos Alexandro Becker and Christian Rocha
8789a984d8
wip
...
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
2024-11-26 14:17:28 -05:00
Carlos Alexandro Becker and Christian Rocha
2ec013be27
wip
...
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
2024-11-26 14:17:28 -05:00
Carlos Alexandro Becker and Christian Rocha
7073d1abc8
wip: area
...
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
2024-11-26 14:17:28 -05:00
Ayman Bagabas
eb9b6c5a06
chore: merge branch 'v2-exp' into v2-real-textarea
2024-11-26 14:13:07 -05:00
Ayman Bagabas
bd415b4eba
chore: update dependencies and fix colors
2024-11-21 12:20:47 -05:00
Christian Rocha
0a6b6e6fd7
chore(merge): branch 'master' into v2-exp
2024-11-15 08:38:55 -05:00
Christian Rocha
398e92c5ae
fix: remove default character limit
2024-11-15 08:30:03 -05:00
Christian Rocha
f439d83043
fix(textarea): max height should not determine max lines
...
Fixes #671 .
2024-11-15 08:30:03 -05:00
Ayman Bagabas
804c370801
fix(textarea): respect double-width characters in real cursor position
2024-11-13 13:28:48 -05:00
Ayman Bagabas
c350e79209
fix(textarea): reset real cursor position on Reset
2024-11-13 13:13:55 -05:00
Ayman Bagabas
8c3085a6cd
feat(textarea): use a real cursor position
...
This sets the real cursor to its correct position when the cursor is moved.
2024-11-13 13:09:40 -05:00
Christian Rocha
fc0fa7807e
feat(textarea): add helpers for default light and dark styles
2024-11-05 21:38:29 -05:00
Christian Rocha
52bd03ed5b
feat!(viewport): use getters and setters for width and height
2024-10-31 15:02:05 -04:00
Christian Rocha
3b879e7694
feat!(viewport): width and height are now optional args in New()
2024-10-31 15:02:05 -04:00
Christian Rocha
4ce3faadcf
feat!(textarea): DefaultKeyMap is now a func instead of a global
2024-10-31 15:02:05 -04:00
Ayman Bagabas
db64e3cd78
feat: update lipgloss to v2
2024-10-29 15:54:24 -04:00
Christian Rocha
12271df027
chore(textarea): nest focused and blurred styles in a parent struct
2024-10-24 17:29:41 -04:00
Christian Rocha
1efec1505f
chore(textarea): minimal updates for Lip Gloss v2
2024-10-24 16:44:30 -04:00
Christian Rocha
57ac102802
chore(merge): branch 'master' into v2-mini-tidy
2024-10-24 15:22:16 -04:00
Christian Rocha
4e05c24fc4
chore: move runeutil and memoization into internal
2024-10-24 15:21:20 -04:00
Christian Rocha
358a6c58c8
chore(lint): fix and suppress all soft lint issues; update directives
2024-10-24 12:35:42 -04:00
Ayman Bagabas
f4fca1b3a0
fix(textarea): add support for bracketed-paste msg
2024-10-10 17:50:59 -04:00