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
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
0966c3a140
Merge branch 'main' into fix-nested-cmd-order
2025-09-11 14:12:06 -04:00
Ayman Bagabas
9aae1f0a1b
chore(examples): go mod tidy
2025-09-08 15:59:39 -04: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
Ayman Bagabas
5fbe2042e1
chore(examples): go mod tidy
2025-08-13 17:43:03 -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
Ayman Bagabas
b489f8a23f
chore(examples): go mod tidy
2025-05-12 13:28:40 -04: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
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
9fab4a1333
chore: run go mod tidy on examples/
2025-04-07 14:38:08 -03:00
dependabot[bot]
6a1ebaa0ea
chore(deps): bump github.com/charmbracelet/glamour in /examples ( #1367 )
...
Bumps [github.com/charmbracelet/glamour](https://github.com/charmbracelet/glamour ) from 0.9.0 to 0.9.1.
- [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.0...v0.9.1 )
---
updated-dependencies:
- dependency-name: github.com/charmbracelet/glamour
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-03-24 09:56:46 +00:00
dependabot[bot]
856516da72
chore(deps): bump github.com/charmbracelet/glamour in /examples ( #1356 )
...
Bumps [github.com/charmbracelet/glamour](https://github.com/charmbracelet/glamour ) from 0.8.0 to 0.9.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.8.0...v0.9.0 )
---
updated-dependencies:
- dependency-name: github.com/charmbracelet/glamour
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-17 09:42:27 +00:00
dependabot[bot]
59d50ae402
chore(deps): bump golang.org/x/net from 0.33.0 to 0.36.0 in /examples ( #1351 )
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.33.0 to 0.36.0.
- [Commits](https://github.com/golang/net/compare/v0.33.0...v0.36.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-13 01:40:23 +00:00
Ayman Bagabas
771a101562
fix: renderer: use newline instead of cud1 to move cursor down ( #1323 )
...
* fix: renderer: use newline instead of cud1 to move cursor down
Using cud1 (`\x1b[B`) won't scroll the terminal if the cursor is already
at the bottom of the screen. Instead, use a newline character to move
the cursor down and scroll the terminal if necessary.
Fixes: https://github.com/charmbracelet/bubbletea/issues/1322
* chore(examples): update tesdata
2025-02-10 16:21:20 -05:00
Ayman Bagabas
cebad5b3dc
chore(examples): update go.mod and go.sum
2025-02-10 14:49:33 -05:00
Ayman Bagabas
7f68efb63b
chore: examples: go mod tidy
2025-02-04 11:10:55 -05:00
dependabot[bot]
73843abd91
chore(deps): bump golang.org/x/net from 0.27.0 to 0.33.0 in /examples ( #1289 )
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.27.0 to 0.33.0.
- [Commits](https://github.com/golang/net/compare/v0.27.0...v0.33.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-13 13:46:09 +00:00
Christian Rocha
2060f938a0
docs(examples): fix glamour example ( #1204 )
2024-12-16 08:27:00 -08:00
Ayman Bagabas
857823478f
chore: bump ansi to v0.6.0
2024-12-10 12:42:11 -05:00
Bilog WEB3
e0515bc22a
docs(readme): fix typos ( #1265 )
2024-12-07 09:29:16 -05:00
bashbunni
9306010a31
docs(example): resize chat example based on window ( #1262 )
2024-12-05 13:42:44 -08:00
Christian Rocha
467ad6886f
chore(examples): go mod tidy
2024-12-05 10:34:42 -05:00
Carlos Alexandro Becker
cb93959823
feat(SIGINT): better handle interrupts ( #1255 )
...
* feat(SIGINT): better handle interrupts
This PR introduces `Interrupt()`, `InterruptMsg{}`, and
`ErrInterrupted`.
Users can still handle "ctrl+c" as before, but instead of return
`tea.Quit`, they can return `tea.Interrupt`.
Later on, they can `errors.If(err, tea.ErrInterrupted)` and
`os.Exit(130)` if they want to.
* chore: fix unrelated typo
it was bothering me
2024-12-02 09:14:20 -03:00
Semih Buyukgungor
97fc4fada8
fix: incorrect line skipping in renderer flush ( #1233 )
...
* fix line skip in flush
* mod tidy in examples dir
* reset lastRenderedLines on repaint
* docs: add note
* fix: simplify line skip logic
---------
Co-authored-by: Ayman Bagabas <ayman.bagabas@gmail.com>
2024-11-12 13:54:54 -05:00
Ayman Bagabas
5b65f9afee
chore: go mod tidy
2024-11-08 11:55:21 -05:00
dependabot[bot]
3bbf24dec2
chore(deps): bump github.com/charmbracelet/lipgloss in /examples ( #1220 )
...
Bumps [github.com/charmbracelet/lipgloss](https://github.com/charmbracelet/lipgloss ) from 0.13.1 to 1.0.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/v0.13.1...v1.0.0 )
---
updated-dependencies:
- dependency-name: github.com/charmbracelet/lipgloss
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-10-31 16:19:21 -04:00
Konstantin Antonov
3dfbcd9c9b
feat(render): skipping lines from previous frame
2024-10-30 09:43:53 -04:00
Konstantin Antonov
e44d9c6af2
update golden output
2024-10-30 09:43:53 -04:00
Christian Rocha
f2e01145fe
docs(examples): fix panics in table-width example
2024-10-29 15:14:41 -04:00
dependabot[bot]
1212e505d0
chore(deps): bump github.com/charmbracelet/lipgloss in /examples ( #1198 )
2024-10-28 11:57:53 +00:00
Ayman Bagabas
fc066c0f13
chore(examples): go mod tidy
2024-10-24 11:08:32 -04:00
Ayman Bagabas
f945f2e94c
chore(examples): go mod tidy
2024-10-15 16:58:47 -04:00
Ayman Bagabas
bd77483b44
chore: go mod tidy
2024-09-19 15:44:31 -07:00
Ayman Bagabas
dbb00c1de7
chore(deps): bump github.com/charmbracelet/x/ansi from 0.2.3 to 0.3.1
2024-09-16 10:03:06 -04:00
Carlos Alexandro Becker
2dd30e5eb3
chore(deps): bump golang.org/x/sys from 0.24.0 to 0.25.0
...
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-09-12 11:59:58 -03:00
Christian Rocha
69ecd8542a
chore(examples): remove performance rendering portion of pager example
2024-09-12 10:43:24 -04:00
dependabot[bot]
6d43c27f66
chore(deps): bump github.com/charmbracelet/bubbles in /examples ( #1131 )
...
Bumps [github.com/charmbracelet/bubbles](https://github.com/charmbracelet/bubbles ) from 0.19.0 to 0.20.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.19.0...v0.20.0 )
---
updated-dependencies:
- dependency-name: github.com/charmbracelet/bubbles
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-09-09 12:34:17 -03:00
Ayman Bagabas
e58efab371
feat: support focus-blur events ( #1122 )
...
* feat: support focus-blur events
This backports @caarlos0 focus-blur changes from v2-exp to v1 https://github.com/charmbracelet/bubbletea/pull/1081
Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
* Update key_sequences.go
Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
* fix: go mod tidy
---------
Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
Co-authored-by: Christian Rocha <christian@rocha.is>
2024-08-30 09:20:01 -04:00
dependabot[bot]
af7ec0e187
chore(deps): bump github.com/charmbracelet/bubbles in /examples ( #1104 )
2024-08-29 12:41:01 +00:00
Christian Rocha
17443d8d12
chore(deps): go mod tidy
2024-08-22 13:18:16 -04:00
dependabot[bot]
3eb74e8d9d
chore(deps): bump github.com/charmbracelet/glamour in /examples ( #1074 )
...
Bumps [github.com/charmbracelet/glamour](https://github.com/charmbracelet/glamour ) from 0.7.0 to 0.8.0.
- [Release notes](https://github.com/charmbracelet/glamour/releases )
- [Commits](https://github.com/charmbracelet/glamour/compare/v0.7.0...v0.8.0 )
---
updated-dependencies:
- dependency-name: github.com/charmbracelet/glamour
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-06 14:17:45 -04:00
Ayman Bagabas
7c1bfc0e55
fix: query window-size in a goroutine ( #1059 )
...
We need to run checkResize in a goroutine, otherwise, it will block.
Related: https://github.com/charmbracelet/bubbletea/pull/988#issuecomment-2231811332
Fixes: 7d708384a1 (feat: add a cmd to request window size (#988 ))
2024-07-18 09:57:59 -04:00
Ayman Bagabas
4497aa9eef
fix: reset cursor position on renderer exit ( #1058 )
...
We need to reset the cursor position to the beginning of the line when
the program stops or exit.
Related: https://github.com/charmbracelet/gum/issues/607
2024-07-16 12:54:58 -04:00
dependabot[bot]
08a1ab98ca
chore(deps): bump github.com/charmbracelet/lipgloss in /examples ( #1056 )
...
Bumps [github.com/charmbracelet/lipgloss](https://github.com/charmbracelet/lipgloss ) from 0.11.1 to 0.12.1.
- [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/v0.11.1...v0.12.1 )
---
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>
2024-07-12 13:10:30 -04:00
Carlos Alexandro Becker
ea13ffb9a1
feat: allow to suspend bubbletea programs ( #1054 )
...
* feat: allow to suspend bubbletea programs
closes #497
closes #1053
* fix: typo
* fix: move things around, add example
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
* fix: block until CONT
* fix: ResumeMsg
* docs: improve example
* docs: one more example
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
* fix: examples tests
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
---------
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-07-11 18:05:16 -03:00
dependabot[bot]
0208ac59e9
chore(deps): bump github.com/charmbracelet/lipgloss in /examples ( #1051 )
2024-07-10 15:31:26 -04:00
Ayman Bagabas
b7530fab5a
chore(examples): go mod tidy
2024-07-10 13:03:43 -04:00
Akshay Kalose
4a9620e713
fix(examples): Fix bugs in package-manager
2024-06-28 13:09:29 -04:00