bashbunni
be428f9e69
refactor: replace KeyMsg with KeyPressMsg
2024-08-22 11:28:23 -07:00
Ayman Bagabas and bashbunni
588baf1653
fix(key): make matches accept any stringer
2024-08-22 11:02:06 -07:00
Ayman Bagabas and bashbunni
e0fce973e1
feat!: use pure lipgloss and drop adaptive colors
2024-08-22 11:00:14 -07:00
Ayman Bagabas and bashbunni
111fcdb9a8
feat!: use new bubbletea input api
2024-08-22 10:59:17 -07:00
Christian Rocha
f25096d1b6
chore(lint): disable 'predeclared' linter
...
It seems to always run on the latest version of Go and we're finding
false positives with its suggestions.
v0.19.0
2024-08-20 15:22:27 -04:00
Christian Rocha
235075af49
feat: add HelpView to table as a convenience
2024-08-20 15:22:27 -04:00
bashbunni and GitHub
c1d9f7dd6b
feat(table): remove StyleFunc + add tests for table alignment ( #586 )
...
* Revert "Add support fo style func to table bubble"
This reverts commit 04658fed8e .
* test(table): add tests for table alignment
2024-08-19 13:56:47 -07:00
Ayman Bagabas
549d0767b3
chore: fix lint
2024-08-19 16:27:18 -04:00
92d44ed7fa
feat(deps): bump github.com/charmbracelet/bubbletea ( #587 )
...
Bumps [github.com/charmbracelet/bubbletea](https://github.com/charmbracelet/bubbletea ) from 0.26.6 to 0.27.0.
- [Release notes](https://github.com/charmbracelet/bubbletea/releases )
- [Changelog](https://github.com/charmbracelet/bubbletea/blob/master/.goreleaser.yml )
- [Commits](https://github.com/charmbracelet/bubbletea/compare/v0.26.6...v0.27.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-08-19 15:37:41 -03: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
Carlos Alexandro Becker
ff5fb57861
ci: no announce
...
refs https://github.com/charmbracelet/bubbles/pull/526#discussion_r1715833029
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
2024-08-13 22:13:00 -03: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
57c9331045
feat(deps): bump github.com/mattn/go-runewidth from 0.0.15 to 0.0.16 ( #565 )
...
Bumps [github.com/mattn/go-runewidth](https://github.com/mattn/go-runewidth ) from 0.0.15 to 0.0.16.
- [Commits](https://github.com/mattn/go-runewidth/compare/v0.0.15...v0.0.16 )
---
updated-dependencies:
- dependency-name: github.com/mattn/go-runewidth
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-08-13 15:29:06 -03:00
dependabot[bot] and GitHub
6063cfbc0c
feat(deps): bump github.com/charmbracelet/lipgloss from 0.11.0 to 0.12.1 ( #552 )
2024-08-13 18:24:44 +00:00
88d2772b90
feat(deps): bump github.com/charmbracelet/x/ansi from 0.1.2 to 0.1.4 ( #551 )
...
Bumps [github.com/charmbracelet/x/ansi](https://github.com/charmbracelet/x ) from 0.1.2 to 0.1.4.
- [Release notes](https://github.com/charmbracelet/x/releases )
- [Commits](https://github.com/charmbracelet/x/compare/ansi/v0.1.2...ansi/v0.1.4 )
---
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-08-13 15:16:18 -03:00
8b5efceda0
feat(deps): bump github.com/charmbracelet/bubbletea ( #545 )
...
Bumps [github.com/charmbracelet/bubbletea](https://github.com/charmbracelet/bubbletea ) from 0.26.4 to 0.26.6.
- [Release notes](https://github.com/charmbracelet/bubbletea/releases )
- [Changelog](https://github.com/charmbracelet/bubbletea/blob/master/.goreleaser.yml )
- [Commits](https://github.com/charmbracelet/bubbletea/compare/v0.26.4...v0.26.6 )
---
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-08-13 15:00:56 -03:00
Aditi Patel and GitHub
6202df1306
fix: update position constant in JoinHorizontal ( #577 )
2024-08-07 14:06:50 -04:00
Christian Rocha
0368f4300e
chore: update CODEOWNERS
2024-08-06 10:18:43 -04:00
Christian Rocha
a9344b5953
chore(textarea): lift an if condition into a parent loop
2024-07-17 09:26:38 -04:00
Christian Rocha
c30c185b93
feat(textarea): end of buffer lines span the full block
...
This is for styling purposes, particularly when you want to apply
a background to the entire textarea.
2024-07-17 09:26:38 -04:00
Christian Rocha
95d338b099
feat(textarea): dynamically determine line number integer padding
2024-07-17 09:26:38 -04:00
Christian Rocha
1a3627eb98
feat(textarea): inherit styles from base (and elsewhere)
...
This reduces the amount of styling needed for what's likely more common
use cases, such as using Styles.Base to apply a background color to the
entire field.
2024-07-17 09:26:38 -04:00
Christian Rocha
64a67d1670
chore: update CODEOWNERS
2024-06-18 16:15:15 -04:00
Gabriel Fu and GitHub
36baf3d64e
Update table.go ( #539 )
2024-06-18 11:45:04 -04:00
Florian Rey and Christian Rocha
c3e07c9b36
fix: progress default spring option
2024-06-17 09:03:35 -04:00
0b15a9fad1
feat(deps): bump github.com/charmbracelet/bubbletea ( #533 )
...
Bumps [github.com/charmbracelet/bubbletea](https://github.com/charmbracelet/bubbletea ) from 0.26.3 to 0.26.4.
- [Release notes](https://github.com/charmbracelet/bubbletea/releases )
- [Commits](https://github.com/charmbracelet/bubbletea/compare/v0.26.3...v0.26.4 )
---
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-05-31 17:02:51 -04:00
Ayman Bagabas and GitHub
11a9fccd58
chore: fix lint issues ( #534 )
2024-05-31 16:48:29 -04:00
Michael Lorant and GitHub
296fcf77fa
feat(textarea) Add multiline placeholder ( #302 )
...
Add the capability to show a multiline placeholder. Some refactoring was
required to improve readability and improve logic.
End of line buffer character was only shown when line numbers were
displayed which requires some verification whether this is the intended
outcome. This change resolves this issue.
2024-05-30 20:28:20 -04:00
bd562f9d85
feat(deps): bump github.com/charmbracelet/x/ansi from 0.1.1 to 0.1.2 ( #529 )
...
Bumps [github.com/charmbracelet/x/ansi](https://github.com/charmbracelet/x ) from 0.1.1 to 0.1.2.
- [Release notes](https://github.com/charmbracelet/x/releases )
- [Commits](https://github.com/charmbracelet/x/compare/ansi/v0.1.1...ansi/v0.1.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-05-28 13:38:11 -04:00
Garrett Martin and GitHub
620ca7dfa9
fix: default textarea EndOfBufferCharacter should be ' ' ( #510 )
2024-05-23 17:37:59 -04:00
Gabe Cook and Christian Rocha
613d1cb46e
fix(help): Fix help bubble not centering correctly
2024-05-23 16:50:38 -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
Carlos Alexandro Becker
50b0bb0f3b
docs: fix typo
...
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
2024-05-14 22:21:14 -03:00
3b92457170
feat(deps): bump github.com/charmbracelet/bubbletea ( #525 )
...
Bumps [github.com/charmbracelet/bubbletea](https://github.com/charmbracelet/bubbletea ) from 0.25.0 to 0.26.2.
- [Release notes](https://github.com/charmbracelet/bubbletea/releases )
- [Commits](https://github.com/charmbracelet/bubbletea/compare/v0.25.0...v0.26.2 )
---
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-05-14 22:18:47 -03:00
3ec7fd4fe4
chore(deps): bump golangci/golangci-lint-action from 5 to 6 ( #522 )
...
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action ) from 5 to 6.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases )
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v5...v6 )
---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
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-05-14 22:18:12 -03:00
Christian Rocha
65933b4ef6
chore(lint): drop deprecated 'ifshort' linter directive
2024-05-08 14:02:15 -04:00
Christian Rocha and GitHub
de18ed2891
chore(readme): add kevm/bubbleo to 'additional bubbles'
2024-05-08 12:21:36 -04:00
c6bfeb0e6c
chore(deps): bump golangci/golangci-lint-action from 4 to 5 ( #514 )
...
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action ) from 4 to 5.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases )
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
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-05-01 10:26:29 -04:00
Maas Lalani
68a68a472d
fix(table): inherit SelectedStyle for StyleFunc
2024-04-24 13:50:10 -04:00
Kevin Miller and Maas Lalani
04658fed8e
Add support fo style func to table bubble
2024-04-24 13:37:52 -04:00
Kevin Miller and Maas Lalani
63b0917193
fix textinput.CurrentSuggestion() panic
...
When suggestions are not yet set CurrentSuggestion() will panic. This change fixes that with a guard and returns an empty string when there is no current suggestion.
2024-04-22 14:20:02 -04:00
Michael Lorant and Maas Lalani
48dffdd97e
refactor(textarea): Improve setting width
...
When setting the width of the textarea there were some issues
preventing this from working correctly. These problems included:
- If the maximum width needed to be used, the width of the textarea did
not take into account the prompt and line number width.
- The viewport width did not take into account the style width.
The entire function was confusing to understand and a refactor was
warranted.
As part of this refactor, the bugs mentioned above were fixed and the
code was simplified.
To verify that the logic works as expected, unit tests were expanded to
validate that setting the width works as expected.
Signed-off-by: Michael Lorant <michael.lorant@nine.com.au >
2024-04-06 01:37:46 -04:00
9030d22eec
feat(textinput): do not block input on validation ( #185 )
...
* feat(textinput): do not block input on validation
This PR builds upon the excellent work in #167 and #114 and makes a
breaking change to the validation API.
Currently, validation will completely block text input if the Validate
function returns an error. This is now changed so the function no longer
blocks input if this is the case, thus handing this responsibility to
the clients.
This is helpful for cases where the user is requested to type an
existing system path, and the Validate function keeps asserting the
existence of the path. With the current implementation such a validation
is not possible.
For example:
> /
Err: nil
> /t
Err: /t: No such file or directory
> /tm
Err: /tm: No such file or directory
> /tmp
Err: nil
* fix: change name
---------
Co-authored-by: Maas Lalani <maas@lalani.dev >
2024-03-13 21:22:49 -04:00
bashbunni and GitHub
2b22d5293f
docs: update custom bubbles requirements ( #495 )
2024-03-13 13:21:30 -07:00
David Zeleniak and GitHub
e726cbfb5c
fix(table): table scrolls before selected reaches top/bottom ( #429 )
...
* Fix bug in moving up in table
* fix
* Fix table viewport scroll down too early
2024-03-13 14:39:10 -04:00
6dbfc8284d
fix(table): substract headers Y size from the total table size ( #434 )
...
* fix(table): substract headers Y size from the total table size
* fix: change GetFrameSize to GetVerticalFrameSize and calc header height
* fix: remove GetVerticalFrameSize at all
* fix: account for headers in height WithHeight, SetHeight
---------
Co-authored-by: Maas Lalani <maas@lalani.dev >
2024-03-13 14:31:42 -04:00