Commit Graph
711 Commits
Author SHA1 Message Date
Carlos Alexandro Becker f03bfcc799 Merge remote-tracking branch 'origin/master' into v2-exp
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2025-10-01 17:29:32 -03:00
Carlos Alexandro Becker e606fbca6a chore(deps): update
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2025-10-01 17:28:18 -03:00
Carlos Alexandro BeckerandGitHub 49ff5c03b7 fix(textinput): improve placeholder (#768)
similar to #767 but for textinputs
2025-10-01 10:22:53 -03:00
c2223a7c4f fix(list): ensure correct cursor positions with page/cursor methods (#831) (#837)
Co-authored-by: Christian Rocha <christian@rocha.is>
2025-09-29 14:38:47 -04:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
d6934a175b chore(deps): bump github.com/mattn/go-runewidth in the all group (#852)
Bumps the all group with 1 update: [github.com/mattn/go-runewidth](https://github.com/mattn/go-runewidth).


Updates `github.com/mattn/go-runewidth` from 0.0.16 to 0.0.17
- [Commits](https://github.com/mattn/go-runewidth/compare/v0.0.16...v0.0.17)

---
updated-dependencies:
- dependency-name: github.com/mattn/go-runewidth
  dependency-version: 0.0.17
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: all
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-29 10:54:36 +00:00
Liam StanleyandGitHub bc03e71e42 feat(textarea): add PageUp & PageDown support (#844)
Signed-off-by: Liam Stanley <liam@liam.sh>
2025-09-23 09:04:39 -03:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
f2d12667c4 chore(deps): bump github.com/charmbracelet/bubbletea in the all group (#850)
Bumps the all group with 1 update: [github.com/charmbracelet/bubbletea](https://github.com/charmbracelet/bubbletea).


Updates `github.com/charmbracelet/bubbletea` from 1.3.9 to 1.3.10
- [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.9...v1.3.10)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/bubbletea
  dependency-version: 1.3.10
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: all
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-22 09:16:56 +00:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5caedd7607 chore(deps): bump the all group with 2 updates (#848)
Bumps the all group with 2 updates: [github.com/charmbracelet/bubbletea](https://github.com/charmbracelet/bubbletea) and [github.com/lucasb-eyer/go-colorful](https://github.com/lucasb-eyer/go-colorful).


Updates `github.com/charmbracelet/bubbletea` from 1.3.7 to 1.3.9
- [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.7...v1.3.9)

Updates `github.com/lucasb-eyer/go-colorful` from 1.2.0 to 1.3.0
- [Release notes](https://github.com/lucasb-eyer/go-colorful/releases)
- [Changelog](https://github.com/lucasb-eyer/go-colorful/blob/master/CHANGELOG.md)
- [Commits](https://github.com/lucasb-eyer/go-colorful/compare/v1.2.0...v1.3.0)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/bubbletea
  dependency-version: 1.3.9
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: all
- dependency-name: github.com/lucasb-eyer/go-colorful
  dependency-version: 1.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-15 09:56:29 +00:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
cfdc19ba97 chore(deps): bump actions/setup-go from 5 to 6 in the all group (#842)
Bumps the all group with 1 update: [actions/setup-go](https://github.com/actions/setup-go).


Updates `actions/setup-go` from 5 to 6
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: all
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-15 09:06:26 +00:00
Liam StanleyandGitHub 7445f97348 refactor(viewport): softwrap; improve perf; various bug fixes (#823) 2025-09-12 13:24:49 -04:00
Liam StanleyandGitHub 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
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3532a32914 chore(deps): bump github.com/charmbracelet/bubbletea in the all group (#841)
Bumps the all group with 1 update: [github.com/charmbracelet/bubbletea](https://github.com/charmbracelet/bubbletea).


Updates `github.com/charmbracelet/bubbletea` from 1.3.6 to 1.3.7
- [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.6...v1.3.7)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/bubbletea
  dependency-version: 1.3.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: all
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-08 09:18:08 +00:00
7c44f63d31 v1: fix(list): ensure correct cursor positions with page/cursor methods (#831)
* fix(list): misc cursor position fixes

Signed-off-by: Liam Stanley <liam@liam.sh>

* chore(list): add low/high check in clamp

---------

Signed-off-by: Liam Stanley <liam@liam.sh>
Co-authored-by: Christian Rocha <christian@rocha.is>
2025-09-01 09:50:17 -04:00
Liam StanleyandChristian 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
CharmandGitHub 4b2d311076 ci: sync dependabot config (#835) 2025-08-26 13:01:25 -03:00
Ayman BagabasandGitHub 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
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
6de30985f1 chore(deps): bump actions/checkout from 4 to 5 (#828)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-18 12:54:20 +00:00
Christian Rocha 7fcf75da53 docs(readme): update footer image and copyright date 2025-08-13 08:11:33 -04:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3cadd53d27 chore(deps): bump github.com/charmbracelet/x/ansi from 0.9.3 to 0.10.1 (#826)
Bumps [github.com/charmbracelet/x/ansi](https://github.com/charmbracelet/x) from 0.9.3 to 0.10.1.
- [Commits](https://github.com/charmbracelet/x/compare/ansi/v0.9.3...ansi/v0.10.1)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/x/ansi
  dependency-version: 0.10.1
  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-08-11 13:25:27 +00: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
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
d66fddf5e7 chore(deps): bump github.com/charmbracelet/bubbletea from 1.3.5 to 1.3.6 (#813)
Bumps [github.com/charmbracelet/bubbletea](https://github.com/charmbracelet/bubbletea) from 1.3.5 to 1.3.6.
- [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.5...v1.3.6)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/bubbletea
  dependency-version: 1.3.6
  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-07-14 11:56:01 +00: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 BagabasandGitHub 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
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
23b8fd6302 chore(deps): bump github.com/charmbracelet/x/ansi from 0.9.2 to 0.9.3 (#803)
Bumps [github.com/charmbracelet/x/ansi](https://github.com/charmbracelet/x) from 0.9.2 to 0.9.3.
- [Commits](https://github.com/charmbracelet/x/compare/ansi/v0.9.2...ansi/v0.9.3)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/x/ansi
  dependency-version: 0.9.3
  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-06-23 10:34:23 +00:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
8e4b39d634 chore(deps): bump github.com/aymanbagabas/go-udiff from 0.2.0 to 0.3.1 (#798)
Bumps [github.com/aymanbagabas/go-udiff](https://github.com/aymanbagabas/go-udiff) from 0.2.0 to 0.3.1.
- [Release notes](https://github.com/aymanbagabas/go-udiff/releases)
- [Commits](https://github.com/aymanbagabas/go-udiff/compare/v0.2.0...v0.3.1)

---
updated-dependencies:
- dependency-name: github.com/aymanbagabas/go-udiff
  dependency-version: 0.3.1
  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-06-09 10:01:44 +00: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 NeringandGitHub 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 WestropeandGitHub f54a125f7d test(table): improve table unit tests (#601) 2025-05-16 14:13:06 -03:00
Broderick WestropeandChristian Rocha dff42ddb7c feat: update keybindings in list setSize method 2025-05-16 10:03:59 -04:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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
DryHumourandGitHub c376ce3ef1 fix(cursor): fix data race on blinkTag (#784) 2025-04-30 10:45:41 -04:00
CharmandGitHub daab808a4d ci: sync dependabot config (#786) 2025-04-28 09:10:04 -03:00