Commit graph

1070 commits

Author SHA1 Message Date
Ayman Bagabas
0c534a6b9f
refactor: improve input reading with timeout to handle incomplete sequences 2025-09-29 17:54:13 -04:00
withtimezone
f2333d7144
chore: remove unused min/max func (#1497)
Signed-off-by: withtimezone <with_timezone@outlook.com>
2025-09-25 11:20:30 -03:00
Ayman Bagabas
9edf69c677
fix: handle setWindowTitleMsg and windowSizeMsg in eventLoop
Fixes: ffa0502190 (Merge pull request #848 from wolfmagnate/fix-nested-cmd-order)
2025-09-17 16:11:15 -04:00
dependabot[bot]
31c0299982
chore(deps): bump github.com/lucasb-eyer/go-colorful (#1496)
Bumps the all group in /examples with 1 update: [github.com/lucasb-eyer/go-colorful](https://github.com/lucasb-eyer/go-colorful).


Updates `github.com/lucasb-eyer/go-colorful` from 1.2.0 to 1.3.0
- [Release notes](https://github.com/lucasb-eyer/go-colorful/releases)
- [Changelog](https://github.com/lucasb-eyer/go-colorful/blob/master/CHANGELOG.md)
- [Commits](https://github.com/lucasb-eyer/go-colorful/compare/v1.2.0...v1.3.0)

---
updated-dependencies:
- dependency-name: github.com/lucasb-eyer/go-colorful
  dependency-version: 1.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-15 09:50:22 +00:00
Ayman Bagabas
ffa0502190
Merge pull request #848 from wolfmagnate/fix-nested-cmd-order 2025-09-11 14:49:14 -04:00
Ayman Bagabas
9e0e8f0df1
fix: recover from nested panics in Sequence and Batch commands 2025-09-11 14:46:06 -04:00
Ayman Bagabas
0966c3a140
Merge branch 'main' into fix-nested-cmd-order 2025-09-11 14:12:06 -04:00
Ayman Bagabas
21eecd5863
fix: send batch commands to cmds channel instead of executing them in event loop (#1473)
We shouldn't execute commands in the event loop ourselves. Instead, we
should send them to the commands channel where the command handlers will
take care of executing them.

Fixes: f5da8d068a (fix: handle nested SequenceMsg in event loop and use sync.WaitGroup f… (#1463))
Supersedes: https://github.com/charmbracelet/bubbletea/pull/1485
2025-09-08 16:03:30 -04:00
Ayman Bagabas
9aae1f0a1b
chore(examples): go mod tidy 2025-09-08 15:59:39 -04:00
dependabot[bot]
41f39959f2
chore(deps): bump golang.org/x/sys in the all group (#1492)
Bumps the all group with 1 update: [golang.org/x/sys](https://github.com/golang/sys).


Updates `golang.org/x/sys` from 0.34.0 to 0.36.0
- [Commits](https://github.com/golang/sys/compare/v0.34.0...v0.36.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-version: 0.36.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-08 09:41:09 +00:00
dependabot[bot]
3da2d28219
chore(deps): bump actions/setup-go from 5 to 6 in the all group (#1491)
Bumps the all group with 1 update: [actions/setup-go](https://github.com/actions/setup-go).


Updates `actions/setup-go` from 5 to 6
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: all
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-08 09:18:39 +00:00
Ayman Bagabas
28ab4f41b2
fix(renderer): properly reset cursor position to start of line (#1472)
This change uses carriage return (`\r`) instead of moving the cursor
backward by the terminal width at the end of rendering in inline mode.
With this, we don't need to know the terminal width to reset the cursor
position, which avoids issues when the renderer doesn't yet know the
terminal width (e.g. the first render where the size message hasn't been
sent to the renderer yet).

Fixes: https://github.com/charmbracelet/bubbletea/issues/1471
2025-09-05 10:37:47 -04:00
Charm
a81d6f3875
ci: sync dependabot config (#1480) 2025-08-26 13:01:43 -03:00
dependabot[bot]
b7042c77da
chore(deps): bump actions/checkout from 4 to 5 (#1475)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  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>
2025-08-18 13:08:06 +00:00
Ayman Bagabas
80ea844a76
fix: lint issues in key_windows.go and tty_windows.go 2025-08-15 19:05:56 -04:00
Ayman Bagabas
f01583bb89
docs: show the correct branch in the build badge 2025-08-13 17:47:21 -04:00
Ayman Bagabas
5fbe2042e1
chore(examples): go mod tidy 2025-08-13 17:43:03 -04:00
Christian Rocha
919805f8f0
docs(readme): update footer art 2025-08-13 08:10:17 -04:00
dependabot[bot]
2a4f0e15af
chore(deps): bump github.com/charmbracelet/x/ansi from 0.9.3 to 0.10.1 (#1467)
Bumps [github.com/charmbracelet/x/ansi](https://github.com/charmbracelet/x) from 0.9.3 to 0.10.1.
- [Commits](https://github.com/charmbracelet/x/compare/ansi/v0.9.3...ansi/v0.10.1)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/x/ansi
  dependency-version: 0.10.1
  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-08-11 14:03:04 +00:00
github-actions[bot]
53609c1f4a
ci: sync golangci-lint config (#1466)
Co-authored-by: aymanbagabas <3187948+aymanbagabas@users.noreply.github.com>
2025-08-11 08:23:39 -04:00
Ayman Bagabas
f5da8d068a
fix: handle nested SequenceMsg in event loop and use sync.WaitGroup f… (#1463)
* fix: handle nested SequenceMsg in event loop and use sync.WaitGroup for BatchMsg

This simplifies the handling of nested BatchMsg within sequenceMsg and ensures
that all commands in a BatchMsg are executed before proceeding.
It also replaces errgroup with sync.WaitGroup for better clarity and performance
when waiting for multiple goroutines to finish.

Fixes: https://github.com/charmbracelet/bubbletea/issues/680
Supersedes: https://github.com/charmbracelet/bubbletea/pull/843

* chore: examples: bump dependencies
2025-08-08 15:04:36 -04:00
Joe Henke
c76509a9d4
fix: compact sequences like batches (#958) 2025-08-07 11:19:00 -04:00
Yongteng Lei
c30088fd4e
chore: correct DisableBracketedPaste behavior in comment (#1458) 2025-07-28 10:01:06 -04:00
yingshanghuangqiao
b6958d3adc chore: fix some comments
Signed-off-by: yingshanghuangqiao <yingshanghuangqiao@foxmail.com>
2025-07-22 13:11:26 -04:00
Christian Rocha
c3136ed490
docs(license): update copyright date range 2025-07-22 11:59:54 -04:00
dependabot[bot]
a8c4763874
chore(deps): bump golang.org/x/sync from 0.15.0 to 0.16.0 (#1451)
Bumps [golang.org/x/sync](https://github.com/golang/sync) from 0.15.0 to 0.16.0.
- [Commits](https://github.com/golang/sync/compare/v0.15.0...v0.16.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sync
  dependency-version: 0.16.0
  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-07-14 11:10:39 +00:00
dependabot[bot]
84b868fef8
chore(deps): bump golang.org/x/sys from 0.33.0 to 0.34.0 (#1450)
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.33.0 to 0.34.0.
- [Commits](https://github.com/golang/sys/compare/v0.33.0...v0.34.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-version: 0.34.0
  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-07-14 11:07:00 +00:00
Josh Allen
0a63003a85
fix: Windows: first character input lost on successive programs (#1368)
* Fix: Windows: first character input lost on successive programs

* lint G115

* intToUint32OrDie

* avoid max check

math.MaxUint32 (untyped int constant 4294967295) overflows int
2025-07-07 15:59:42 -04:00
github-actions[bot]
ca9473b2d9
ci: sync golangci-lint config (#1431) 2025-06-30 10:13:28 -03:00
dependabot[bot]
02729d1ba0
chore(deps): bump github.com/charmbracelet/x/ansi from 0.9.2 to 0.9.3 (#1443)
Bumps [github.com/charmbracelet/x/ansi](https://github.com/charmbracelet/x) from 0.9.2 to 0.9.3.
- [Commits](https://github.com/charmbracelet/x/compare/ansi/v0.9.2...ansi/v0.9.3)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/x/ansi
  dependency-version: 0.9.3
  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>
2025-06-23 10:56:41 +00:00
Christian Rocha
1b0f48941a
docs(readme): cleanup badges 2025-06-19 21:31:23 -04:00
dependabot[bot]
cb320f1329
chore(deps): bump stefanzweifel/git-auto-commit-action from 5 to 6 (#1439)
Bumps [stefanzweifel/git-auto-commit-action](https://github.com/stefanzweifel/git-auto-commit-action) from 5 to 6.
- [Release notes](https://github.com/stefanzweifel/git-auto-commit-action/releases)
- [Changelog](https://github.com/stefanzweifel/git-auto-commit-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stefanzweifel/git-auto-commit-action/compare/v5...v6)

---
updated-dependencies:
- dependency-name: stefanzweifel/git-auto-commit-action
  dependency-version: '6'
  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>
2025-06-16 09:47:11 +00:00
dependabot[bot]
d0e25a259c
chore(deps): bump golang.org/x/sync from 0.14.0 to 0.15.0 (#1435)
Bumps [golang.org/x/sync](https://github.com/golang/sync) from 0.14.0 to 0.15.0.
- [Commits](https://github.com/golang/sync/compare/v0.14.0...v0.15.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sync
  dependency-version: 0.15.0
  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-06-09 09:48:11 +00:00
Raphaël Vigée
78ed49b060
fix: maintain exec output (#1276)
* Maintain exec output

* add test

---------

Co-authored-by: Ayman Bagabas <ayman.bagabas@gmail.com>
2025-05-13 12:27:50 -04:00
Ayman Bagabas
b489f8a23f
chore(examples): go mod tidy 2025-05-12 13:28:40 -04:00
dependabot[bot]
a9ccefc1c8
chore(deps): bump golang.org/x/sys from 0.32.0 to 0.33.0 (#1414)
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.32.0 to 0.33.0.
- [Commits](https://github.com/golang/sys/compare/v0.32.0...v0.33.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-version: 0.33.0
  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-05-12 10:23:09 +00:00
dependabot[bot]
3fae19223c
chore(deps): bump golang.org/x/sync from 0.13.0 to 0.14.0 (#1413)
Bumps [golang.org/x/sync](https://github.com/golang/sync) from 0.13.0 to 0.14.0.
- [Commits](https://github.com/golang/sync/compare/v0.13.0...v0.14.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sync
  dependency-version: 0.14.0
  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-05-12 10:20:45 +00:00
dependabot[bot]
fb7c46835f
chore(deps): bump github.com/charmbracelet/x/ansi from 0.8.0 to 0.9.2 (#1409)
Bumps [github.com/charmbracelet/x/ansi](https://github.com/charmbracelet/x) from 0.8.0 to 0.9.2.
- [Commits](https://github.com/charmbracelet/x/compare/ansi/v0.8.0...ansi/v0.9.2)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/x/ansi
  dependency-version: 0.9.2
  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-05-05 09:27:32 +00:00
Ayman Bagabas
62ca063a25
fix(key): windows: recognize function keys on Windows (#1405)
We ignore function keys on Windows. This was introduced after we
switched to the Windows API.
This commit simply adds function keys from F1 to F20.

Fixes: https://github.com/charmbracelet/bubbletea/issues/1404
2025-04-29 16:09:01 -04:00
Charm
0b18d1f86f
ci: sync dependabot config (#1403) 2025-04-28 09:09:10 -03:00
dependabot[bot]
12e598b196
chore(deps): bump github.com/charmbracelet/glamour in /examples (#1397)
Bumps [github.com/charmbracelet/glamour](https://github.com/charmbracelet/glamour) from 0.9.1 to 0.10.0.
- [Release notes](https://github.com/charmbracelet/glamour/releases)
- [Changelog](https://github.com/charmbracelet/glamour/blob/master/.goreleaser.yml)
- [Commits](https://github.com/charmbracelet/glamour/compare/v0.9.1...v0.10.0)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/glamour
  dependency-version: 0.10.0
  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-04-21 10:54:37 +00:00
Ayman Bagabas
915f65d156
chore: merge pull request #1376 from desertwitch/stacked-patches
(v1-0/3) tea.go: all fixes combined (for convenience/CI)
2025-04-20 06:11:20 -04:00
github-actions[bot]
5a360c9fba
ci: sync golangci-lint config (#1394) 2025-04-20 11:12:48 +02:00
dependabot[bot]
540d584029
chore(deps): bump golang.org/x/net from 0.36.0 to 0.38.0 in /examples (#1392)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.36.0 to 0.38.0.
- [Commits](https://github.com/golang/net/compare/v0.36.0...v0.38.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-version: 0.38.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-16 23:16:21 +00:00
dependabot[bot]
5aca88cf80
chore(deps): bump github.com/charmbracelet/bubbles in /examples (#1389)
Bumps [github.com/charmbracelet/bubbles](https://github.com/charmbracelet/bubbles) from 0.20.0 to 0.21.0.
- [Release notes](https://github.com/charmbracelet/bubbles/releases)
- [Changelog](https://github.com/charmbracelet/bubbles/blob/master/.goreleaser.yml)
- [Commits](https://github.com/charmbracelet/bubbles/compare/v0.20.0...v0.21.0)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/bubbles
  dependency-version: 0.21.0
  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-04-14 09:20:59 +00:00
Andrey Nering
1a0062becb ci: fix lint issues 2025-04-08 10:55:17 -03:00
Andrey Nering
9fab4a1333 chore: run go mod tidy on examples/ 2025-04-07 14:38:08 -03:00
dependabot[bot]
5c6d02d00b
chore(deps): bump golang.org/x/sys from 0.31.0 to 0.32.0 (#1382)
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.31.0 to 0.32.0.
- [Commits](https://github.com/golang/sys/compare/v0.31.0...v0.32.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-version: 0.32.0
  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-04-07 10:28:09 +00:00
dependabot[bot]
3639b32dc3
chore(deps): bump golang.org/x/sync from 0.12.0 to 0.13.0 (#1381)
Bumps [golang.org/x/sync](https://github.com/golang/sync) from 0.12.0 to 0.13.0.
- [Commits](https://github.com/golang/sync/compare/v0.12.0...v0.13.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sync
  dependency-version: 0.13.0
  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-04-07 10:26:49 +00:00
github-actions[bot]
a46d16dccb
ci: sync golangci-lint config (#1379)
Co-authored-by: andreynering <7011819+andreynering@users.noreply.github.com>
2025-03-31 14:32:22 -03:00