Commit graph

13 commits

Author SHA1 Message Date
Ayman Bagabas
ff8c8247c5
docs(examples): migrate imports to charm.land 2025-11-04 14:59:01 -05:00
Ayman Bagabas
eecd88792a
docs: update examples to use the new api 2025-10-14 12:12:09 -04:00
Ayman Bagabas
20b1d5def3
chore: update examples to use tea.View 2025-10-01 13:50:44 -04:00
Ayman Bagabas
f2d8c4d1e4
chore: update examples and api 2025-10-01 13:50:43 -04:00
Carlos Alexandro Becker
4aaaabd7b4
fix: example 2025-02-13 13:37:02 -03:00
Christian Rocha
06e7f63413
docs(examples): update various examples per v2 changes 2025-02-04 16:17:44 -05:00
Ayman Bagabas
55f6f9f70b
chore(examples): update examples 2025-01-23 15:42:03 -05:00
Christian Rocha
3071c589f6 docs(examples): minor UX improvement to the window-size example 2024-10-31 16:07:31 -04:00
Christian Rocha
3bd4650254
chore: use verbs in background, foreground, and window request cmd names (#1205)
* chore: use verbs in background, foreground, and window request cmd names

This renames a few existing commands to make it clearer that the user is
firing off a task.

* WindowSize -> RequestWindowSize
* ForegroundColor -> RequestForegroundColor
* BackgroundColor -> RequestBackgroundColor

It also expands on a few comments, and provides examples.

* fix: screen tests

* fix(examples): use RequestWindowSize instead of WindowSize

---------

Co-authored-by: Ayman Bagabas <ayman.bagabas@gmail.com>
2024-10-28 13:38:27 -04:00
Ayman Bagabas
e812e941e7
fix: examples: update examples to use tea.KeyPressMsg and tea.MouseClickMsg 2024-10-11 11:53:41 -04:00
Ayman Bagabas
1678d85ce2
feat: use bubbles/v2 and bubbletea/v2 in examples and tutorials 2024-09-18 14:21:14 -04:00
Ayman Bagabas
ee120d5542
chore: update examples to use v2-exp 2024-09-12 11:39:54 -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