Ayman Bagabas
8b901d55ff
chore(key): add Matches test
2025-04-23 15:14:12 +02:00
Ayman Bagabas
9d836514cf
fix(key): accept both key.Text and key.String for key matches
...
This commit fixes the key matching logic to accept both the key.Text and
key.String representations of keys. This allows for more flexible key
matching, especially when dealing with different keyboard layouts or
input methods.
Fixes: https://github.com/charmbracelet/bubbletea/issues/1390
2025-04-15 16:29:14 +02:00
Carlos Alexandro Becker
bb6a2a461d
Merge remote-tracking branch 'origin/master' into v2-exp
2025-04-14 11:07:20 -03:00
Andrey Nering
3e2a8caedb
chore: fix lint warning
2025-04-10 10:33:29 -03:00
Carlos Alexandro Becker and GitHub
8b55efb294
fix(textarea): placeholder with chinese chars ( #767 )
v0.21.0
2025-03-31 19:55:03 -03:00
Carlos Alexandro Becker
9d2d5dfc71
Merge remote-tracking branch 'origin/master' into v2-exp
2025-03-31 14:20:56 -03:00
Carlos Alexandro Becker and GitHub
bd2a5b0c6a
fix: golangci-lint 2 fixes ( #769 )
2025-03-31 14:18:18 -03:00
cce848148c
ci: sync golangci-lint config ( #770 )
...
Co-authored-by: caarlos0 <245435+caarlos0@users.noreply.github.com >
2025-03-31 14:15:13 -03:00
Carlos Alexandro Becker
6a68f368a6
Merge remote-tracking branch 'origin/master' into v2-exp
2025-03-28 14:03:24 -03:00
Carlos Alexandro Becker
38200076b7
Merge branch 'UnseenBook/master' into v2-exp
2025-03-28 14:02:13 -03:00
Unseen Daan and GitHub
ea344ab907
feat(viewport): horizontal scroll with mouse wheel ( #761 )
...
Add support for the events of a horizontal mouse wheel and when holding
shift while using the regular mouse wheel now scrolls the screen left
and right.
2025-03-28 13:59:12 -03:00
Daan Schoone
a0a432e11d
feat(viewport): horizontal scroll with mouse wheel
...
Add support for the events of a horizontal mouse wheel and when holding
shift while using the regular mouse wheel now scrolls the screen left
and right.
2025-03-28 10:18:17 +01:00
Carlos Alexandro Becker and GitHub
3a0776eea3
Merge pull request #765 from charmbracelet/updates
...
fix(viewport): normalize method names
2025-03-27 21:05:37 -03:00
6f4a536421
Update viewport/viewport.go
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-03-27 16:51:54 -03:00
Carlos Alexandro Becker
b1cef26c7d
fix: normalize yoffset
2025-03-27 16:34:10 -03:00
Carlos Alexandro Becker
4286c736cd
Merge remote-tracking branch 'origin/master' into v2-exp
...
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
2025-03-27 16:17:34 -03:00
Carlos Alexandro Becker and GitHub
39668ec629
fix(viewport): normalize method names ( #763 )
...
* Reapply "fix(viewport): normalize method names"
This reverts commit f2434c374b .
* test: fixes
* fix: lint
* fix: disable horizontal scroll on v1
it might be a breaking change.
let's enable it by default on v2, and remove the deprecated methods as
well.
cc/ @meowgorithm
* fix: simplify
2025-03-27 16:11:34 -03:00
Carlos Alexandro Becker
f2434c374b
Revert "fix(viewport): normalize method names"
...
This reverts commit c7f889e364 .
accidental push to master
2025-03-26 17:07:26 -03:00
Carlos Alexandro Becker
c7f889e364
fix(viewport): normalize method names
2025-03-26 17:07:04 -03:00
Ayman Bagabas
601039139c
test(table): update golden files for alignment tests
v2.0.0-beta.1
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 Bagabas and GitHub
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 Bagabas and GitHub
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
Carlos Alexandro Becker
acc929c43e
fix: lint
...
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
2025-03-25 13:42:02 -03:00
Carlos Alexandro Becker
d5bc1ac332
Merge remote-tracking branch 'origin/master' into v2-exp-update
...
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
2025-03-25 11:31:38 -03:00
bashbunni and GitHub
9e5365e0ec
docs: add example for ValidateFunc ( #705 )
...
* docs(textinput): add ValidateFunc example
* chore: remove print statement
* chore: rename the -> this anonymous func
2025-03-25 10:51:14 -03:00
c814ac75c3
chore(deps): bump github.com/charmbracelet/lipgloss from 1.0.0 to 1.1.0 ( #751 )
...
Bumps [github.com/charmbracelet/lipgloss](https://github.com/charmbracelet/lipgloss ) from 1.0.0 to 1.1.0.
- [Release notes](https://github.com/charmbracelet/lipgloss/releases )
- [Changelog](https://github.com/charmbracelet/lipgloss/blob/master/.goreleaser.yml )
- [Commits](https://github.com/charmbracelet/lipgloss/compare/v1.0.0...v1.1.0 )
---
updated-dependencies:
- dependency-name: github.com/charmbracelet/lipgloss
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>
2025-03-25 10:42:23 -03:00
3befcccf87
chore(deps): bump github.com/muesli/termenv from 0.15.2 to 0.16.0 ( #740 )
...
Bumps [github.com/muesli/termenv](https://github.com/muesli/termenv ) from 0.15.2 to 0.16.0.
- [Release notes](https://github.com/muesli/termenv/releases )
- [Commits](https://github.com/muesli/termenv/compare/v0.15.2...v0.16.0 )
---
updated-dependencies:
- dependency-name: github.com/muesli/termenv
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>
2025-03-25 10:42:12 -03:00
Carlos Alexandro Becker and GitHub
0305695768
ci: test on oldstable and stable go versions, automerge dependabot ( #755 )
2025-03-25 10:41:59 -03:00
4e8b6b2043
chore(deps): bump github.com/charmbracelet/bubbletea from 1.1.2 to 1.3.4 ( #745 )
...
Bumps [github.com/charmbracelet/bubbletea](https://github.com/charmbracelet/bubbletea ) from 1.1.2 to 1.3.4.
- [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.2...v1.3.4 )
---
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>
2025-03-25 10:25:04 -03:00
43aa82c87e
feat(deps): bump github.com/charmbracelet/x/ansi ( #716 )
...
Bumps [github.com/charmbracelet/x/ansi](https://github.com/charmbracelet/x ) from 0.6.1-0.20250107110353-48b574af22a5 to 0.8.0.
- [Release notes](https://github.com/charmbracelet/x/releases )
- [Commits](https://github.com/charmbracelet/x/commits/ansi/v0.8.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>
2025-03-25 10:24:46 -03:00
d58217bded
ci: sync golangci-lint config ( #750 )
...
Co-authored-by: aymanbagabas <3187948+aymanbagabas@users.noreply.github.com >
2025-03-25 10:24:22 -03:00
Carlos Alexandro Becker
d91c9aa894
ci: rm .golangci-soft.yml
2025-03-25 10:23:38 -03:00
Carlos Alexandro Becker and GitHub
54f28b6501
fix(filepicker): properly scrolling filepicker ( #753 )
...
* fix(filepicker): properly scrolling filepicker
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
* fix: SetHeight
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
---------
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
2025-03-20 14:00:29 -03:00
Andrey Nering
fff86382cc
chore(lint): remove custom min and max functions
...
These are now available as builtins.
2025-03-20 10:42:52 -03:00
Andrey Nering
76433f7143
ci: fix linting on windows
2025-03-20 10:42:52 -03:00
Andrey Nering
976d9a1108
chore(go.mod): update to go 1.23
2025-03-20 10:42:52 -03:00
Andrey Nering
06824cb77d
chore: add taskfile
2025-03-20 10:42:52 -03:00
Carlos Alexandro Becker
bd20b89a3e
fix(viewport): remove LineNumbersGutter
...
closes #738
2025-03-18 10:22:16 -03:00
Carlos Alexandro Becker
71493456d9
Merge remote-tracking branch 'origin/master' into v2-exp
2025-03-13 16:55:11 -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
Michał Kotowski and Christian Rocha
cdc743f1f4
chore(links): switch bubbletea links to use main
...
Cosmetic change.
Old links used `master` as the main branch. Resulting in GitHub
redirecting to the correct default branch and displaying:
> Branch not found, redirected to default branch.
Signed-off-by: Michał Kotowski <dev@mkotowski.dev >
2025-03-05 06:57:17 -05:00
Christian Rocha
739fec5f64
chore(input,textarea): return nil for cursors when using virtual cursors
2025-03-01 10:10:36 -05:00
Charm and GitHub
7a6b190840
ci: sync dependabot config ( #736 )
2025-02-13 11:29:08 -03:00
Charm and GitHub
2f4944346f
ci: sync dependabot config ( #734 )
2025-02-13 10:58:35 -03:00
Carlos Alexandro Becker and GitHub
4491afa808
feat(viewport): SetLines ( #728 )
2025-02-11 14:07:51 -03:00
Carlos Alexandro Becker and GitHub
c20ae83e2f
fix: lint issues ( #730 )
2025-02-10 16:00:55 -03:00
Andrey Nering
c5b76847ca
chore(go.mod): update github.com/charmbracelet/x/exp/golden
2025-02-07 13:13:47 -03:00