Liam Stanley and GitHub
50038ebdab
fix(textarea): ensure cursor is always in view ( #840 )
...
Signed-off-by: Liam Stanley <liam@liam.sh >
2025-09-08 16:15:25 -04:00
Liam Stanley and Christian Rocha
c690ea5e0f
feat(textarea): add ScrollYOffset and ScrollPosition methods
...
Signed-off-by: Liam Stanley <liam@liam.sh >
2025-09-01 09:36:08 -04:00
Ayman Bagabas and GitHub
601216f68e
Merge pull request #822 from charmbracelet/textarea/set-vp-content
...
fix(textarea): ensure viewport content is set during update
2025-08-20 16:36:09 -04:00
Ayman Bagabas
86f3326295
fix(textarea): update tests to reflect changes in textarea content
2025-08-07 10:45:36 -04:00
Ayman Bagabas
efdc0e8e45
fix(textarea): use pointer receiver for Model methods
2025-08-07 10:45:21 -04:00
Ayman Bagabas
c4068c642c
fix(textarea): ensure viewport content is set during update
...
This ensures that the viewport content is set and persisted correctly.
Setting the content during View won't doesn't work because it mutates a
copy of the model instead without persisting the changes. Moreover, any
after effects of setting the content won't be visible because the next
Update will be called on the older model, not the new one.
2025-08-01 12:22:10 -04:00
1e2ffbbcf5
feat(textarea): get the word under the cursor ( #814 )
...
* feat(textarea): get the word under the cursor
* fix: lint
* Update textarea/textarea_test.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* test: fix
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
---------
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-07-16 16:15:46 -03:00
a4c42b5791
feat(textarea): add focus status to setPromptFunc ( #797 )
...
* fix!(textarea): send focus status to promptFunc
* feat(filepicker): add highlighted file path
* chore: rename and add docs
* fix(filepicker): disabled cursor style
* feat(textarea): promptFunc receives a PromptInfo type with metadata
---------
Co-authored-by: Kujtim Hoxha <kujtimii.h@gmail.com >
2025-07-10 12:19:07 -04:00
Ayman Bagabas and GitHub
696244a1d0
feat(textarea): expose MoveToBegin and MoveToEnd methods ( #809 )
...
This commit exposes the MoveToBegin and MoveToEnd methods in the
textarea package, allowing users to programmatically move the cursor
to the beginning or end of the input text.
2025-07-10 09:34:24 -04:00
Christian Rocha
56bbc4a1ba
fix(textinput,textarea): don't draw real cusor when blurred
2025-06-03 08:37:20 -04:00
Andrey Nering
04ec518a95
chore: run modernize
2025-05-30 17:20:01 -03:00
Christian Rocha
b3f0c9e423
fix(textarea): cursorline now fills the line when a placeholder is present
2025-05-26 09:15:38 -04:00
Christian Rocha
e89dc94c85
chore!(cursor): improve naming around 'blinking'
2025-05-26 09:15:38 -04:00
Christian Rocha
0f113d10c4
chore(textarea,textinput/lint): use slices.Delete()
2025-05-26 09:15:38 -04:00
Christian Rocha
b2bcf2232b
chore(textarea,textinput/lint): modernize loops
2025-05-26 09:15:38 -04:00
Christian Rocha
d42b7c42d5
fix(textarea/tests): update tests per API changes
2025-05-26 09:15:38 -04:00
Christian Rocha
3cbcdd9249
chore(textinput): minor logic improvement with regard to cursors
2025-05-26 09:15:38 -04:00
Christian Rocha
bb1d1d275d
fix(textarea): suppress blink messages when real cursor is active
2025-05-26 09:15:38 -04:00
Christian Rocha
b531de8f1c
fix!(textarea): virtual cursor blink
2025-05-26 09:15:38 -04:00
Christian Rocha
8e84f33a49
fix!(textinput): cursor fixes and improvements
...
* Fix virtual cursor blinking
* Use getter and setter for styles
* Use getter and setter for virtual-real cursor management
2025-05-26 09:15:38 -04:00
Christian Rocha
ba5555aa93
fix(cursor): set ID on virutal cursors
2025-05-26 09:15:38 -04:00
Andrey Nering and GitHub
081e998660
Merge pull request #790 from charmbracelet/v2-exp-table-tests
...
chore: merge `master` with #601 into `v2-exp`
2025-05-16 14:47:17 -03:00
Andrey Nering
47b0944fc8
test: fix tests by ignoring func references
2025-05-16 14:41:16 -03:00
Andrey Nering
73839850f7
test: update golden files with nbsp for v2
2025-05-16 14:24:38 -03:00
Andrey Nering
dffbe595a1
Merge branch 'master' into v2-exp-table-tests
2025-05-16 14:23:52 -03:00
Broderick Westrope and GitHub
f54a125f7d
test(table): improve table unit tests ( #601 )
2025-05-16 14:13:06 -03:00
Broderick Westrope and Christian Rocha
dff42ddb7c
feat: update keybindings in list setSize method
2025-05-16 10:03:59 -04:00
6157198699
chore(deps): bump github.com/charmbracelet/x/ansi from 0.8.0 to 0.9.2 ( #788 )
...
Bumps [github.com/charmbracelet/x/ansi](https://github.com/charmbracelet/x ) from 0.8.0 to 0.9.2.
- [Commits](https://github.com/charmbracelet/x/compare/ansi/v0.8.0...ansi/v0.9.2 )
---
updated-dependencies:
- dependency-name: github.com/charmbracelet/x/ansi
dependency-version: 0.9.2
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-05 09:40:45 +00:00
5348e15465
chore(deps): bump github.com/charmbracelet/bubbletea from 1.3.4 to 1.3.5 ( #787 )
...
Bumps [github.com/charmbracelet/bubbletea](https://github.com/charmbracelet/bubbletea ) from 1.3.4 to 1.3.5.
- [Release notes](https://github.com/charmbracelet/bubbletea/releases )
- [Changelog](https://github.com/charmbracelet/bubbletea/blob/main/.goreleaser.yml )
- [Commits](https://github.com/charmbracelet/bubbletea/compare/v1.3.4...v1.3.5 )
---
updated-dependencies:
- dependency-name: github.com/charmbracelet/bubbletea
dependency-version: 1.3.5
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-05 09:35:08 +00:00
DryHumour and GitHub
c376ce3ef1
fix(cursor): fix data race on blinkTag ( #784 )
2025-04-30 10:45:41 -04:00
Charm and GitHub
daab808a4d
ci: sync dependabot config ( #786 )
2025-04-28 09:10:04 -03:00
8562e9075f
ci: sync golangci-lint config ( #781 )
...
Co-authored-by: aymanbagabas <3187948+aymanbagabas@users.noreply.github.com >
2025-04-23 15:12:25 +02:00
ShalokShalom and GitHub
d4feefed7d
docs: remove Charm Cloud reference ( #785 )
...
Remove a reference to charm
2025-04-23 15:10:13 +02:00
🅡🅐🅟🅗🅐 and GitHub
591f42904a
Merge pull request #783 from s0ders/fix/table-cursor-out-of-bounds
...
fix(table): preventing cursor from being out-of-bounds.
2025-04-22 16:43:16 +02:00
s0ders
11d52ca426
fix(table): preventing cursor from being out-of-bounds.
...
The following brings:
- Preventing table's cursor from being out-of-bound when the table's
rows shrink.
ref: #782
2025-04-22 13:52:57 +02:00
Carlos Alexandro Becker
bb6a2a461d
Merge remote-tracking branch 'origin/master' into v2-exp
2025-04-14 11:07:20 -03:00
Andrey Nering
3e2a8caedb
chore: fix lint warning
2025-04-10 10:33:29 -03:00
Carlos Alexandro Becker and GitHub
8b55efb294
fix(textarea): placeholder with chinese chars ( #767 )
v0.21.0
2025-03-31 19:55:03 -03:00
Carlos Alexandro Becker
9d2d5dfc71
Merge remote-tracking branch 'origin/master' into v2-exp
2025-03-31 14:20:56 -03:00
Carlos Alexandro Becker and GitHub
bd2a5b0c6a
fix: golangci-lint 2 fixes ( #769 )
2025-03-31 14:18:18 -03:00
cce848148c
ci: sync golangci-lint config ( #770 )
...
Co-authored-by: caarlos0 <245435+caarlos0@users.noreply.github.com >
2025-03-31 14:15:13 -03:00
Carlos Alexandro Becker
6a68f368a6
Merge remote-tracking branch 'origin/master' into v2-exp
2025-03-28 14:03:24 -03:00
Carlos Alexandro Becker
38200076b7
Merge branch 'UnseenBook/master' into v2-exp
2025-03-28 14:02:13 -03:00
Unseen Daan and GitHub
ea344ab907
feat(viewport): horizontal scroll with mouse wheel ( #761 )
...
Add support for the events of a horizontal mouse wheel and when holding
shift while using the regular mouse wheel now scrolls the screen left
and right.
2025-03-28 13:59:12 -03:00
Daan Schoone
a0a432e11d
feat(viewport): horizontal scroll with mouse wheel
...
Add support for the events of a horizontal mouse wheel and when holding
shift while using the regular mouse wheel now scrolls the screen left
and right.
2025-03-28 10:18:17 +01:00
Carlos Alexandro Becker and GitHub
3a0776eea3
Merge pull request #765 from charmbracelet/updates
...
fix(viewport): normalize method names
2025-03-27 21:05:37 -03:00
6f4a536421
Update viewport/viewport.go
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-03-27 16:51:54 -03:00
Carlos Alexandro Becker
b1cef26c7d
fix: normalize yoffset
2025-03-27 16:34:10 -03:00
Carlos Alexandro Becker
4286c736cd
Merge remote-tracking branch 'origin/master' into v2-exp
...
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
2025-03-27 16:17:34 -03:00
Carlos Alexandro Becker and GitHub
39668ec629
fix(viewport): normalize method names ( #763 )
...
* Reapply "fix(viewport): normalize method names"
This reverts commit f2434c374b .
* test: fixes
* fix: lint
* fix: disable horizontal scroll on v1
it might be a breaking change.
let's enable it by default on v2, and remove the deprecated methods as
well.
cc/ @meowgorithm
* fix: simplify
2025-03-27 16:11:34 -03:00