Commit Graph
544 Commits
Author SHA1 Message Date
Christian Rocha d514f3d2bf chore(runeutil): improve package description 2024-10-23 17:34:38 -04:00
Christian Rocha d487f7843f chore(runeutil): make package internal 2024-10-23 17:34:28 -04:00
Christian Rocha c4f0400a8b chore(textarea): remove keymap global in favor of a function 2024-10-23 17:11:36 -04:00
Christian Rocha f6eb94828d chore(textarea): focused/blurred styles now belong to one style struct 2024-10-23 17:02:44 -04:00
Christian Rocha a7b0c79ab4 chore(textarea): update for Lip Gloss v2 2024-10-23 17:02:44 -04:00
Ayman Bagabas 1b341485f2 fix(textinput): return a pointer to StyleState 2024-10-23 16:52:57 -04:00
Christian Rocha 432972ae77 feat(textinput): add styles for focused and blurred states 2024-10-23 16:43:23 -04:00
Christian Rocha 30d7e7bd31 chore(textinput): use a getter and setter for width 2024-10-23 16:43:23 -04:00
Christian Rocha 17533b1286 chore(textinput): use getter and setter for width 2024-10-23 16:43:23 -04:00
Christian Rocha aa1fe05f2e chore(textinput): DefaultKeyMap is now a func that returns a KeyMap 2024-10-23 16:43:22 -04:00
Christian Rocha 49c9acaa03 chore(list): update for Lip Gloss v2 2024-10-23 16:43:22 -04:00
Christian Rocha 95e716e9ec docs(cursor): fix typo in comment 2024-10-23 16:43:22 -04:00
Christian Rocha 7d60fd1ebd chore(help): update for Lip Gloss v2 2024-10-23 16:43:22 -04:00
Christian Rocha 3fc226c136 feat(filepicker): make symlink symbol customizable 2024-10-23 16:43:22 -04:00
Christian Rocha 0892f86973 chore(filepicker): use Lip Gloss v2 2024-10-23 16:43:18 -04:00
Ayman Bagabas e2033f3460 chore: go mod tidy 2024-10-21 14:16:54 -04:00
Ayman Bagabas 287c9c4ffd chore: merge branch 'master' into v2-exp 2024-10-21 14:16:22 -04:00
Ayman BagabasandGitHub 17a0051938 chore: merge pull request #620 from charmbracelet/v2-deprecated
(v2) refactor!: remove deprecated references
2024-10-21 14:16:10 -04:00
Ayman BagabasandGitHub f1bc5cb472 chore: merge pull request #619 from charmbracelet/v2-remove-deprecated
(v2) refactor!: viewport: remove deprecated HighPerformanceRendering
2024-10-21 14:15:52 -04: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
Ayman Bagabas f4fca1b3a0 fix(textarea): add support for bracketed-paste msg 2024-10-10 17:50:59 -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
Ayman Bagabas 09242fdf67 refactor!: remove deprecated references
This removes all the `NewModel` functions from all the bubbles and any
deprecated fields and types.
2024-09-19 13:44:03 -04:00
Ayman Bagabas 95541c2f51 refactor!: viewport: remove deprecated HighPerformanceRendering
This breaks the API and removes high performance rendering and its
related methods from the viewport package. It changes the API and
makes the methods return nothing instead of lines to render.
2024-09-19 13:42:02 -04:00
Ayman Bagabas f81fd5246a fix: spacebar keybinding is now "space" instead of a literal space v2.0.0-alpha.1 2024-09-18 14:55:49 -04:00
Ayman Bagabas 3a53c6a995 chore: update bubbletea to v2.0.0-alpha.1 2024-09-18 14:44:40 -04:00
Ayman Bagabas a2602f8509 feat!: v2: move to v2 module 2024-09-18 14:12:55 -04:00
Ayman Bagabas 0fdf5f5be5 feat: use bubbletea/v2 2024-09-18 14:09:58 -04:00
Ayman Bagabas 488bef7c13 Merge branch 'master' into v2-exp 2024-09-18 14:09:05 -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
Ayman Bagabas 8972b56c9d feat!: make Init return the model 2024-09-10 14:04: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
Ayman Bagabas a93bfef532 feat!: use bubbletea@v2-exp 2024-09-09 14:12:52 -04: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