Commit Graph

28 Commits

Author SHA1 Message Date
Christian Rocha 85ab476698 Add ProgramOptions for entering the altscreen and enabling the mouse
Because they run ansyncronously, the analogous commands, when run in
a Model's Init() function, could fire after the renderer has starting
writing to output, rendering artifacts to the commandline.
2021-06-02 14:49:54 -04:00
Christian Rocha 7c0bbc7d32 Clean up and normalize examples 2021-05-01 09:33:13 -04:00
Christian Muehlhaeuser b6c7f93d9a Fix various typos in examples 2021-03-12 02:16:41 +01:00
Christian Rocha bc06e8d2e0
Fix wording in, and generally improve, a comment 2020-12-14 20:24:17 -05:00
Christian Rocha 28db8b465a
The q key also quits in the pager example 2020-11-08 21:25:52 -05:00
Christian Rocha 5d34c88692
Update examples for Bubbles v0.8.0 2020-11-08 21:22:39 -05:00
Christian Rocha 847787e46d
Convert remaining examples to Model interface-based structure 2020-10-15 19:48:42 -04:00
Christian Rocha 51e97bb959
Add descriptions to example programs and bump deps in examples 2020-10-14 11:51:32 -04:00
Christian Rocha a784aa32ca
Bump bubbles in examples and remove NewModel function in pager example 2020-07-29 20:07:26 -04:00
Christian Rocha de147c5061
Add mouse wheel support to pager example 2020-06-23 12:01:23 -04:00
Christian Rocha 673752658f
Comments and cleanup 2020-06-22 13:40:32 -04:00
Christian Rocha 468b98d2eb
Comments in the pager example 2020-06-19 13:22:08 -04:00
Christian Rocha 9cf57efe5f
Fix pager footer positioning 2020-06-19 12:29:59 -04:00
Christian Rocha 603eaa27a6
Update pager example to use high performance renderer 2020-06-18 21:09:08 -04:00
Christian Rocha 8e616c4c0c
Just listen for tea.WindowSizeMsg to get terminal dimensions 2020-06-18 13:54:12 -04:00
Christian Rocha 116ab34eb8
Sync pager viewport when starting up and resizing 2020-06-18 12:33:58 -04:00
Christian Rocha 2110a923ab
Use high performance rendering in pager example 2020-06-17 19:43:33 -04:00
Christian Rocha 4d68ed07ef
Add header and footer to pager example 2020-06-17 15:00:13 -04:00
Christian Rocha 847c8b88a0
Implement resize handling in pager example 2020-05-26 09:53:15 -04:00
Christian Rocha 845a269706
Update pager example with resize listening + log to file 2020-05-25 20:24:17 -04:00
Christian Rocha 40332a36b3
Migrate components over to github.com/charmbracelet/bubbles 2020-05-25 20:10:15 -04:00
Christian Rocha 3b8b011b5a
Rename to Bubble Tea (with the import name tea) 2020-05-25 19:48:36 -04:00
Christian Rocha 200891b022
Update dependencies in examples 2020-05-25 14:22:32 -04:00
Christian Rocha 25f8b8c99b
Simplify pager component and fix pager example 2020-05-15 16:08:58 -04:00
Christian Rocha ade8203c21
Remove entire subscription model
It was a valiant effort, and the implementation was solid and
dependable, but at the end of the day we can achieve the same
functionality in a much simpler fashion with commands, especially
because Go is not held to the same restrictions as Elm.
2020-05-12 18:00:50 -04:00
Christian Rocha 82ddbb8e12
Move components over and update examples 2020-05-12 17:06:00 -04:00
Christian Rocha 4bf40fbe62
Rename project to Boba 2020-05-12 16:39:08 -04:00
Christian Rocha b6eeef2127
Pager example 2020-05-11 23:07:45 -04:00