Ayman Bagabas
8fdc81c836
feat: add a Styler interface for styling bubbles
...
This change introduces a Styler interface that allows users to define
custom styles for bubbles. The interface is implemented by the StylerFunc
type, which is a function type that takes a boolean argument and returns
a value of any type.
This allows a user to define a custom StylerFunc that returns a custom
style for a bubble based on the background color of the terminal.
2024-10-29 15:54:40 -04:00
Ayman Bagabas
db64e3cd78
feat: update lipgloss to v2
2024-10-29 15:54:24 -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 Bagabas and GitHub
17a0051938
chore: merge pull request #620 from charmbracelet/v2-deprecated
...
(v2) refactor!: remove deprecated references
2024-10-21 14:16:10 -04:00
Ayman Bagabas and GitHub
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 Bagabas and GitHub
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 Bagabas and GitHub
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 Bagabas and GitHub
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 Bagabas and GitHub
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 Bagabas and GitHub
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 Bagabas and GitHub
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