Commit Graph
725 Commits
Author SHA1 Message Date
Carlos Alexandro BeckerandGitHub ae99f46cec feat(v2/textarea): expose Column(), clarify 0-indexing (#875)
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2026-01-09 08:28:49 -03:00
Ayman Bagabas 93a004ab70 fix(viewport): optimize subline splitting by skipping lines without line endings 2025-12-08 12:18:59 -05:00
Ayman Bagabas 538d39c727 refactor(help): use setter/getter for help width v2.0.0-rc.1 2025-11-17 15:48:30 -05:00
84a82dfeee chore(textarea): remove pointer receiver on update and view (#858)
Co-authored-by: Ayman Bagabas <ayman.bagabas@gmail.com>
2025-11-10 16:10:18 -05:00
Liam StanleyandGitHub faa17cbbd6 feat(progress): support multiple stops and improved blend algorithm (#838) 2025-11-10 15:53:59 -05:00
Ayman Bagabas 5fdd73f350 chore: format file imports with gofumpt 2025-11-10 15:49:13 -05:00
Ayman Bagabas c2b822795a chore: bump dependencies to include latest ultraviolet changes 2025-11-06 14:27:19 -05:00
Ayman Bagabas da0b892d17 refactor: migrate imports to charm.land/lipgloss 2025-11-04 15:02:23 -05:00
Ayman Bagabas a10cfddef9 chore: update import paths from github.com/charmbracelet/bubbles/v2 to charm.land/bubbles/v2 2025-11-04 14:57:00 -05:00
Ayman Bagabas 07735d1672 refactor: update module path to charm.land 2025-11-04 14:56:50 -05:00
Ayman Bagabas 84fd71dae6 fix: use charm.land import path for bubbletea 2025-11-04 14:54:08 -05:00
Ayman Bagabas ffc9ec20b7 chore(table): update golden files for view and alignment tests 2025-11-04 14:25:12 -05:00
Ayman Bagabas e8fcfc5ff7 refactor: use msg.Content for PasteMsg in textinput and textarea 2025-11-04 14:25:01 -05:00
Ayman Bagabas 51876414e2 chore: bump dependencies 2025-11-04 14:24:49 -05:00
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