Commit Graph
49 Commits
Author SHA1 Message Date
Ayman Bagabas 9ce937da3b chore: revert: v2-real-textarea 2025-01-22 16:08:38 -05:00
Ayman Bagabas b19b908da7 chore: revert "wip"
This reverts commit d020289a27, reversing
changes made to c288adf7ab.
2025-01-22 15:48:48 -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 d020289a27 wip 2024-11-26 15:00:40 -05:00
Ayman BagabasandChristian Rocha afbb7bc049 feat(textarea): add SetOffset and CursorPosition methods 2024-11-26 14:17:28 -05:00
Ayman Bagabas eb9b6c5a06 chore: merge branch 'v2-exp' into v2-real-textarea 2024-11-26 14:13:07 -05:00
Ayman Bagabas bd415b4eba chore: update dependencies and fix colors 2024-11-21 12:20:47 -05:00
Ayman Bagabas 804c370801 fix(textarea): respect double-width characters in real cursor position 2024-11-13 13:28:48 -05:00
Ayman Bagabas c350e79209 fix(textarea): reset real cursor position on Reset 2024-11-13 13:13:55 -05:00
Ayman Bagabas 8c3085a6cd feat(textarea): use a real cursor position
This sets the real cursor to its correct position when the cursor is moved.
2024-11-13 13:09:40 -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