Commit Graph
555 Commits
Author SHA1 Message Date
bashbunni 127d34d29d merge master 2025-01-07 08:52:08 -08:00
8624776d45 fix(textinput): slicing outside cap (#532)
* textinput: fix slicing outside cap

* textinput: add test that makes slicing outside cap occur

* chore: tidy with gofmt

---------

Co-authored-by: bashbunni <bunni@bashbunni.dev>
2024-12-05 13:40:33 -08:00
Carlos Alexandro BeckerandGitHub e5296a2b0f ci: fix goreleaser config (#668)
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-11-15 19:00:41 -03: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
Christian Rocha 730f5a29e2 fix: debounce stopwatch and timer
This keeps them from ticking too fast.

Fixes #661.
2024-11-05 22:06:53 -05:00
aymanbagabasandChristian Rocha 20a65e5655 chore(ci): sync golangci-lint config 2024-11-04 09:07:12 -05:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
db3514caa7 feat(deps): bump github.com/charmbracelet/lipgloss from 0.13.1 to 1.0.0 (#655)
Bumps [github.com/charmbracelet/lipgloss](https://github.com/charmbracelet/lipgloss) from 0.13.1 to 1.0.0.
- [Release notes](https://github.com/charmbracelet/lipgloss/releases)
- [Changelog](https://github.com/charmbracelet/lipgloss/blob/master/.goreleaser.yml)
- [Commits](https://github.com/charmbracelet/lipgloss/compare/v0.13.1...v1.0.0)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/lipgloss
  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-11-01 15:07:07 -03:00
Ayman BagabasandGitHub 8101a3462f fix(ci): add lint and lint-sync workflows and update golangci.yml (#651) 2024-10-28 10:18:13 -04:00
Ayman Bagabas 6f3d765c59 chore: bump bubbletea and ansi 2024-10-24 16:01:07 -04:00
Christian Rocha 358a6c58c8 chore(lint): fix and suppress all soft lint issues; update directives 2024-10-24 12:35:42 -04:00
dependabot[bot]andGitHub 7525b8c853 Merge pull request #645 from charmbracelet/dependabot/go_modules/github.com/charmbracelet/lipgloss-0.13.1 2024-10-24 15:42:24 +00:00
dependabot[bot]andGitHub a9b780a96c feat(deps): bump github.com/charmbracelet/lipgloss from 0.13.0 to 0.13.1
Bumps [github.com/charmbracelet/lipgloss](https://github.com/charmbracelet/lipgloss) from 0.13.0 to 0.13.1.
- [Release notes](https://github.com/charmbracelet/lipgloss/releases)
- [Changelog](https://github.com/charmbracelet/lipgloss/blob/master/.goreleaser.yml)
- [Commits](https://github.com/charmbracelet/lipgloss/compare/v0.13.0...v0.13.1)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/lipgloss
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-23 17:28:20 +00:00
bashbunniandGitHub 178590b446 docs: update contributing guidelines (#640) 2024-10-16 09:57:39 -07: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
bashbunni 9516572c1c test(table): failing text alignment 2024-09-26 11:58:39 -07:00
bashbunni 6548f4e501 feat(table): add option for custom StyleFunc 2024-09-26 11:58:13 -07:00
bashbunni 48eb859f21 feat(table): Bring back Height and Rows 2024-09-25 12:40:44 -07:00
bashbunni e7821ead32 feat(table): bring back SetColumn 2024-09-25 11:38:09 -07:00
bashbunni 819e0210bd wip(docs): proposal outline 2024-09-25 11:28:34 -07:00
bashbunni add073a3e0 chore: tidy TODOs 2024-09-25 11:25:27 -07:00
bashbunni c9845d82ef chore(DONT MERGE): use use-lipgloss-table branch of lipgloss 2024-09-25 11:21:46 -07:00
bashbunni b483f6dda9 feat(table): add SetBorder function to set/unset borders 2024-09-25 11:19:45 -07:00
bashbunni cae042849c chore: tidy 2024-09-25 10:27:11 -07:00
bashbunni f1f0c4cb16 chore(deps): use use-lipgloss-table branch of lipgloss 2024-09-24 17:25:26 -07:00
bashbunni a0b7e17ab1 fix(table): use 0 as first row index (no off by one) 2024-09-24 17:18:26 -07:00
bashbunni 14927f0b94 fix(test): set correct type in comparison for TestFromValuesWithTabSeparator 2024-09-24 17:02:26 -07:00
bashbunni e242987806 refactor(test): update error message for TestSetCursor 2024-09-24 16:58:37 -07:00
bashbunni be32116954 fix(test): update outputs for TestTableAlignment 2024-09-24 16:57:38 -07:00
bashbunni c436cff170 wip: fix table styles 2024-09-23 17:48:28 -07:00
bashbunni ee1ba24d7b refactor(table): use maxYOffset 2024-09-20 11:09:54 -07:00
bashbunni 791d89b668 wip: general yoffset logic. Needs clean + height fix 2024-09-20 10:47:15 -07: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
bashbunni 605b8ac4e5 wip: add scrolling 2024-09-16 10:05:09 -07:00
bashbunni 30bed825aa fix(table): style selected row 2024-09-13 18:45:00 -07: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
bashbunni 2e34a232d2 refactor: make SetHeaders variadic 2024-09-11 17:12:22 -07:00
bashbunni 7b5c6cbcb2 chore: tidy 2024-09-11 17:07:14 -07:00
bashbunni e18aafc29b chore: remove header const from exports 2024-09-11 15:43:33 -07:00