521 Commits
Author SHA1 Message Date
Carlos Alexandro BeckerandChristian Rocha 704f101af3 feat: formatter 2024-10-11 11:32:29 -04:00
Carlos Alexandro BeckerandChristian Rocha 9307f6e430 fix: move to last line on accept 2024-10-11 11:32:29 -04:00
Carlos Alexandro BeckerandChristian Rocha 96d064b036 fix: comp 2024-10-11 11:32:29 -04:00
Carlos Alexandro BeckerandChristian Rocha a12c368959 wip
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-10-11 11:32:29 -04:00
Carlos Alexandro BeckerandChristian Rocha ab7ca0eb5a wip
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-10-11 11:32:29 -04:00
Carlos Alexandro BeckerandChristian Rocha 874d67721b wip
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-10-11 11:32:29 -04:00
Carlos Alexandro BeckerandChristian Rocha 8cbaad59d5 wip: area
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-10-11 11:32:29 -04:00
Christian Rocha 60796500b2 chore(help): add full help test to support #554 2024-10-11 11:17:18 -04:00
David Luevano AlvaradoandChristian Rocha 81d444a207 fix(help): wrong full help sep rendering 2024-10-10 15:50:30 -04:00
nobe4andGitHub 171a9d61a0 feat(list): implement GlobalIndex helper (#574)
* feat(list): implement GlobalIndex helper

This commit introduces a new `filteredItem` field called `index` which
stores the index of the filtered item in the unfiltered list. This
allows to get at runtime the unfiltered list index for the selected (and
possibly filtered) item.

This is the only solution I found to use `SetItem` with a filtered
list.

The name `GlobalIndex` might not be ideal, I'm happy to change it to
something else. (`UnfilteredIndex`?)

Fixes: #550

* docs(list): improve Index() documentation
2024-10-09 16:59:04 -07:00
cui fliterandGitHub 076b578512 chore: Remove duplicate and redundant code (#626)
Signed-off-by: cuishuang <imcusg@gmail.com>
2024-10-07 15:29:06 -03:00
AashutoshandGitHub cf3f46ab31 docs(list): fix grammar in doc comment and README (#627) 2024-10-07 15:26:58 -03:00
9a262e9b0f fix: use atomic for ids (#634)
closes #622

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
Co-authored-by: Ville Valkonen <weezel@users.noreply.github.com>
2024-10-07 15:26:12 -03:00
David Luevano AlvaradoandChristian Rocha 4382fdf1c6 feat(textinput): expose matched suggestions and index 2024-09-19 14:16:51 -04:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
ed14316c61 feat(deps): bump github.com/charmbracelet/x/ansi from 0.3.1 to 0.3.2 (#618)
Bumps [github.com/charmbracelet/x/ansi](https://github.com/charmbracelet/x) from 0.3.1 to 0.3.2.
- [Release notes](https://github.com/charmbracelet/x/releases)
- [Commits](https://github.com/charmbracelet/x/compare/ansi/v0.3.1...ansi/v0.3.2)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/x/ansi
  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>
2024-09-17 13:53:19 -04:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
d3ac47df46 feat(deps): bump github.com/charmbracelet/x/ansi from 0.3.0 to 0.3.1 (#615)
Bumps [github.com/charmbracelet/x/ansi](https://github.com/charmbracelet/x) from 0.3.0 to 0.3.1.
- [Release notes](https://github.com/charmbracelet/x/releases)
- [Commits](https://github.com/charmbracelet/x/compare/ansi/v0.3.0...ansi/v0.3.1)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/x/ansi
  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>
2024-09-13 13:15:01 -04:00
Ayman BagabasandGitHub 9589cbc16c fix: lint issues and disable predeclared linter (#614) 2024-09-12 14:33:07 -03:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
c1199d7be6 feat(deps): bump github.com/charmbracelet/x/ansi from 0.2.3 to 0.3.0 (#613)
Bumps [github.com/charmbracelet/x/ansi](https://github.com/charmbracelet/x) from 0.2.3 to 0.3.0.
- [Release notes](https://github.com/charmbracelet/x/releases)
- [Commits](https://github.com/charmbracelet/x/compare/ansi/v0.2.3...ansi/v0.3.0)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/x/ansi
  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>
2024-09-12 13:20:10 -04:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1797ac268d feat(deps): bump github.com/charmbracelet/bubbletea from 1.1.0 to 1.1.1 (#611)
Bumps [github.com/charmbracelet/bubbletea](https://github.com/charmbracelet/bubbletea) from 1.1.0 to 1.1.1.
- [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.1.0...v1.1.1)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/bubbletea
  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>
2024-09-12 12:04:14 -03:00
Christian Rocha 64cc034014 chore(lint): update deprecated directive 2024-09-12 10:43:36 -04:00
Christian Rocha 2caa9d4bdf chore(viewport): deprecate performance rendering stuff 2024-09-12 10:43:36 -04:00
d019ed3cc9 feat(list): add SetFilterText and SetFilterState (#335)
* Add SetFilterText and SetFilterState

* make linter happy

* make SetFilterState state not hardcoded

* tests for SetFilterText and SetFilterState

* fix small typo

---------

Co-authored-by: k-x7 <97758178+k-x7@users.noreply.github.com>
2024-09-10 14:22:03 -03:00
Carlos Alexandro BeckerandGitHub d3bd075ed2 feat(cursor): focus/blur support (#581)
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
v0.20.0
2024-09-05 14:10:05 -03:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
6fc27e99d3 feat(deps): bump github.com/charmbracelet/bubbletea from 1.0.0 to 1.1.0 (#607)
Bumps [github.com/charmbracelet/bubbletea](https://github.com/charmbracelet/bubbletea) from 1.0.0 to 1.1.0.
- [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.0.0...v1.1.0)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/bubbletea
  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>
2024-09-05 14:07:41 -03:00
Christian Rocha a163c6c59d chore(lint): disable predeclared due to false positives 2024-09-02 11:46:35 -04:00
Christian Rocha 72de4f47dc chore(lint): update mnd name, remove deprecated directives
Linter output for this change:

* The linter "deadcode" is deprecated (step 2) and deactivated. It should be removed from the list of disabled linters. https://golangci-lint.run/product/roadmap/#linter-deprecation-cycle
* The linter "structcheck" is deprecated (step 2) and deactivated. It should be removed from the list of disabled linters. https://golangci-lint.run/product/roadmap/#linter-deprecation-cycle
* The linter "varcheck" is deprecated (step 2) and deactivated. It should be removed from the list of disabled linters. https://golangci-lint.run/product/roadmap/#linter-deprecation-cycle
* The linter 'gomnd' is deprecated (since v1.58.0) due to: The linter has been renamed. Replaced by mnd.
2024-09-02 11:46:35 -04:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3eaf8da348 feat(deps): bump github.com/charmbracelet/bubbletea from 0.27.0 to 1.0.0 (#604)
Bumps [github.com/charmbracelet/bubbletea](https://github.com/charmbracelet/bubbletea) from 0.27.0 to 1.0.0.
- [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/v0.27.0...v1.0.0)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/bubbletea
  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>
2024-08-29 09:40:18 -03:00
Florian ReyandChristian Rocha 5110925e87 feat: Introduce paginator options 2024-08-27 10:41:31 -04:00
Christian Rocha f25096d1b6 chore(lint): disable 'predeclared' linter
It seems to always run on the latest version of Go and we're finding
false positives with its suggestions.
v0.19.0
2024-08-20 15:22:27 -04:00
Christian Rocha 235075af49 feat: add HelpView to table as a convenience 2024-08-20 15:22:27 -04:00
bashbunniandGitHub c1d9f7dd6b feat(table): remove StyleFunc + add tests for table alignment (#586)
* Revert "Add support fo style func to table bubble"

This reverts commit 04658fed8e.

* test(table): add tests for table alignment
2024-08-19 13:56:47 -07:00
Ayman Bagabas 549d0767b3 chore: fix lint 2024-08-19 16:27:18 -04:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
92d44ed7fa feat(deps): bump github.com/charmbracelet/bubbletea (#587)
Bumps [github.com/charmbracelet/bubbletea](https://github.com/charmbracelet/bubbletea) from 0.26.6 to 0.27.0.
- [Release notes](https://github.com/charmbracelet/bubbletea/releases)
- [Changelog](https://github.com/charmbracelet/bubbletea/blob/master/.goreleaser.yml)
- [Commits](https://github.com/charmbracelet/bubbletea/compare/v0.26.6...v0.27.0)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/bubbletea
  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>
2024-08-19 15:37:41 -03:00
5428d6ddec feat(key): accept any stringer interface to match keys (#584)
* feat(key): accept any stringer interface to match keys

This allows any `fmt.Stringer` interface to match key bindings. We need
this in the upcoming v2 changes.

* Update key/key.go

Co-authored-by: Christian Rocha <christian@rocha.is>

* Update key/key.go

Co-authored-by: Christian Rocha <christian@rocha.is>

---------

Co-authored-by: Christian Rocha <christian@rocha.is>
2024-08-15 15:01:56 -04:00
Carlos Alexandro Becker ff5fb57861 ci: no announce
refs https://github.com/charmbracelet/bubbles/pull/526#discussion_r1715833029

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-08-13 22:13:00 -03:00
Ayman BagabasandGitHub b8a38fff00 ci: use goreleaser for releases (#526)
This will publish and announce releases on tag push.
2024-08-13 16:24:32 -03:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
57c9331045 feat(deps): bump github.com/mattn/go-runewidth from 0.0.15 to 0.0.16 (#565)
Bumps [github.com/mattn/go-runewidth](https://github.com/mattn/go-runewidth) from 0.0.15 to 0.0.16.
- [Commits](https://github.com/mattn/go-runewidth/compare/v0.0.15...v0.0.16)

---
updated-dependencies:
- dependency-name: github.com/mattn/go-runewidth
  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>
2024-08-13 15:29:06 -03:00
dependabot[bot]andGitHub 6063cfbc0c feat(deps): bump github.com/charmbracelet/lipgloss from 0.11.0 to 0.12.1 (#552) 2024-08-13 18:24:44 +00:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
88d2772b90 feat(deps): bump github.com/charmbracelet/x/ansi from 0.1.2 to 0.1.4 (#551)
Bumps [github.com/charmbracelet/x/ansi](https://github.com/charmbracelet/x) from 0.1.2 to 0.1.4.
- [Release notes](https://github.com/charmbracelet/x/releases)
- [Commits](https://github.com/charmbracelet/x/compare/ansi/v0.1.2...ansi/v0.1.4)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/x/ansi
  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>
2024-08-13 15:16:18 -03:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
8b5efceda0 feat(deps): bump github.com/charmbracelet/bubbletea (#545)
Bumps [github.com/charmbracelet/bubbletea](https://github.com/charmbracelet/bubbletea) from 0.26.4 to 0.26.6.
- [Release notes](https://github.com/charmbracelet/bubbletea/releases)
- [Changelog](https://github.com/charmbracelet/bubbletea/blob/master/.goreleaser.yml)
- [Commits](https://github.com/charmbracelet/bubbletea/compare/v0.26.4...v0.26.6)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/bubbletea
  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>
2024-08-13 15:00:56 -03:00
Aditi PatelandGitHub 6202df1306 fix: update position constant in JoinHorizontal (#577) 2024-08-07 14:06:50 -04:00
Christian Rocha 0368f4300e chore: update CODEOWNERS 2024-08-06 10:18:43 -04:00
Christian Rocha a9344b5953 chore(textarea): lift an if condition into a parent loop 2024-07-17 09:26:38 -04:00
Christian Rocha c30c185b93 feat(textarea): end of buffer lines span the full block
This is for styling purposes, particularly when you want to apply
a background to the entire textarea.
2024-07-17 09:26:38 -04:00
Christian Rocha 95d338b099 feat(textarea): dynamically determine line number integer padding 2024-07-17 09:26:38 -04:00
Christian Rocha 1a3627eb98 feat(textarea): inherit styles from base (and elsewhere)
This reduces the amount of styling needed for what's likely more common
use cases, such as using Styles.Base to apply a background color to the
entire field.
2024-07-17 09:26:38 -04:00
Christian Rocha 64a67d1670 chore: update CODEOWNERS 2024-06-18 16:15:15 -04:00
Gabriel FuandGitHub 36baf3d64e Update table.go (#539) 2024-06-18 11:45:04 -04:00
Florian ReyandChristian Rocha c3e07c9b36 fix: progress default spring option 2024-06-17 09:03:35 -04:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
0b15a9fad1 feat(deps): bump github.com/charmbracelet/bubbletea (#533)
Bumps [github.com/charmbracelet/bubbletea](https://github.com/charmbracelet/bubbletea) from 0.26.3 to 0.26.4.
- [Release notes](https://github.com/charmbracelet/bubbletea/releases)
- [Commits](https://github.com/charmbracelet/bubbletea/compare/v0.26.3...v0.26.4)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/bubbletea
  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>
2024-05-31 17:02:51 -04:00