Commit Graph
54 Commits
Author SHA1 Message Date
Ayman Bagabas 601039139c test(table): update golden files for alignment tests 2025-03-26 21:53:03 +03:00
Ayman Bagabas 4d1c64f836 chore: upgrade to beta.1 of lipgloss and bubbletea 2025-03-26 21:52:49 +03:00
Ayman BagabasandGitHub c860c661e1 Merge pull request #756 from charmbracelet/v2-exp-update
feat(v2): merge master into v2-exp
2025-03-26 21:19:59 +03:00
Ayman BagabasandGitHub 88ad104822 Merge branch 'v2-exp' into v2-exp-update 2025-03-26 21:16:48 +03:00
Ayman Bagabas d179ef712d chore: upgrade dependencies and go.mod 2025-03-26 21:15:16 +03:00
Ayman Bagabas 59511a71e0 fix(textinput): account for width when calculating cursor position 2025-03-10 15:18:55 -04:00
Ayman Bagabas 6af59e6ea4 fix(textarea): cursor position calculation 2025-03-10 15:12:52 -04:00
Ayman Bagabas a7783a1a58 chore: go mod tidy 2025-02-04 14:45:04 -05:00
Ayman BagabasandGitHub 3961136a13 fix(viewport): handle nil LeftGutterFunc (#723)
Since LeftGutterFunc is public, it can be nil if viewport is
instantiated without using `viewport.New()`. This commit adds nil
checks to handle this case.
2025-02-04 16:26:33 -03:00
Ayman Bagabas 3b1b9248be fix(table): crlf on windows 2025-02-04 13:27:29 -05:00
Ayman Bagabas 061e464a70 refactor!: restore bubbletea model interface 2025-02-04 13:01:13 -05:00
Ayman BagabasandGitHub a0d9fe396d refactor: progress: return Model instead of tea.Model (#719)
This conforms to the new generic bubbletea API.
See https://github.com/charmbracelet/bubbletea/pull/1298
2025-01-29 15:59:11 -05:00
518ff7d0d0 feat(textarea): add Cursor method (#712)
* feat(textarea): add CursorPosition method

This returns the current cursor position accounting any soft-wrapped
lines and multi-rune characters.

* chore(textarea): redefine how real cursor properties are accessed (#714)

---------

Co-authored-by: Christian Rocha <christian@rocha.is>
2025-01-23 16:37:07 -05:00
2e3a42396e chore(progress)!: migrate progress to lipgloss (#676)
* chore(progress)!: migrate progress to lipgloss

This removes the dependency on termenv and replaces it with lipgloss. This
change also removes the WithColorProfile option, as it is no longer needed.
The new API uses `color.Color` types for colors, which are more flexible and
allow for more advanced color manipulation.

* Update progress/progress_test.go

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

* Update progress/progress_test.go

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

* chore: go mod tidy

---------

Co-authored-by: Christian Rocha <christian@rocha.is>
2024-12-12 10:51:23 -05:00
Ayman Bagabas bd415b4eba chore: update dependencies and fix colors 2024-11-21 12:20:47 -05:00
Ayman Bagabas 0719711142 chore: merge branch 'master' into v2-exp 2024-11-12 17:05:54 -05:00
Ayman Bagabas aa74e9fb07 chore: update dependencies to use v2-alpha.2 2024-11-12 17:05:10 -05:00
Ayman Bagabas cc009fb401 chore: merge branch 'master' into v2-exp 2024-11-12 17:04:33 -05:00
Ayman Bagabas 812f74ffff chore: remove unused YPosition field from viewport.Model 2024-11-06 18:26:15 -05:00
Ayman Bagabas db64e3cd78 feat: update lipgloss to v2 2024-10-29 15:54:24 -04: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
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
Ayman Bagabas f4fca1b3a0 fix(textarea): add support for bracketed-paste msg 2024-10-10 17:50:59 -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 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
Ayman BagabasandGitHub 9589cbc16c fix: lint issues and disable predeclared linter (#614) 2024-09-12 14:33:07 -03:00
Ayman Bagabas 8972b56c9d feat!: make Init return the model 2024-09-10 14:04:36 -04:00
Ayman Bagabas a93bfef532 feat!: use bubbletea@v2-exp 2024-09-09 14:12:52 -04:00
Ayman Bagabas 549d0767b3 chore: fix lint 2024-08-19 16:27:18 -04: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
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
Ayman BagabasandGitHub 11a9fccd58 chore: fix lint issues (#534) 2024-05-31 16:48:29 -04:00
Ayman Bagabas 5b33bdbff6 chore: upgrade dependencies 2024-05-23 15:21:20 -04:00
Ayman BagabasandGitHub e1ea5dc528 refactor: switch to x/ansi for text manipulation (#505)
Need to be consistent with Lipgloss and https://github.com/charmbracelet/lipgloss/pull/279
2024-05-23 15:13:44 -04:00
Ayman Bagabas 3e827603f3 chore: upgrade dependencies 2024-05-23 15:01:52 -04:00
Ayman Bagabas 14a62710fc fix(textarea): use x/ansi to strip ansi sequences 2024-05-23 15:01:44 -04:00
Ayman Bagabas e84ce79497 chore(ci): enable gofumpt 2024-05-22 11:49:10 -04:00
Ayman Bagabas 330dd3fa5d feat: upgrade bubbletea and remove deprecated code
Supersedes: https://github.com/charmbracelet/bubbles/pull/447
2023-12-13 10:37:00 -08:00
Ayman Bagabas 39f4eeae2c fix(ci): remove soft-serve workflow 2023-05-12 14:14:41 -04:00
Ayman BagabasandGitHub 7959eb4867 fix(progress): set a custom termenv color profile (#152) 2022-06-01 18:04:33 -07:00
Ayman Bagabas c214837839 fix: add viewport keymap help 2022-04-29 12:20:18 -04:00
Ayman Bagabas f5ac64216b fix: lint warn 2022-04-29 12:20:18 -04:00
Ayman Bagabas 88562515cf fix(list): rendering empty list
Fixes: 4e18245481 ("Add list bubble")
2022-03-02 17:38:35 -05:00
Ayman BagabasandGitHub 18d25458da fix(list): DisableQuitKeybinding is ignored after updating the list (#108) 2022-01-27 13:09:53 -05:00
Ayman Bagabas db97ac515d feat: sync bubbles with git.charm.sh 2022-01-24 17:08:23 -05:00