Christian Rocha
847787e46d
Convert remaining examples to Model interface-based structure
2020-10-15 19:48:42 -04:00
Christian Rocha
7530fb0112
Update mouse example to use new Model interface-based structure
2020-10-15 16:33:37 -04:00
Christian Rocha
7507f3d805
Update views example to use new Model interface-based structure
2020-10-15 16:30:34 -04:00
Christian Rocha
816428c135
Add comment for Init() in simple example
2020-10-15 16:19:13 -04:00
Christian Rocha
7af3e0e9de
Update simple example to use new Model interface-based structure
2020-10-15 16:08:42 -04:00
Christian Rocha
71bd542320
Add Treilik-inspired example for sending value along on exit
2020-10-14 16:51:15 -04:00
Christian Rocha
51e97bb959
Add descriptions to example programs and bump deps in examples
2020-10-14 11:51:32 -04:00
Nikhil Prabhu
a588b61db4
Fix incorrect program description comment
...
This commit fixes an incorrect program description comment that is actually used for the /examples/simple/main.go program.
2020-10-14 13:18:20 +00:00
Christian Rocha
9c9a92c349
Add Windows support
2020-10-12 23:14:55 -04:00
Christian Muehlhaeuser
7b645a9910
Remove replace declaration in go.mod for examples
2020-10-13 04:18:07 +02:00
Christian Rocha
5a26d39072
Remove replace declaration in go.mod for examples
2020-10-12 22:11:17 -04:00
Christian Rocha
1dda8ac639
Color and formatting for "views" demo
2020-10-02 20:17:19 -04:00
Christian Rocha
4390b305ef
Update dependencies
2020-10-02 13:19:59 -04:00
Christian Rocha
a4f26594b2
Rename MouseButton type to more accurate MouseEventType
2020-09-28 16:42:39 -04:00
Christian Muehlhaeuser
82e641ef63
go mod tidy
2020-08-22 12:33:48 +02:00
Christian Muehlhaeuser
fdd1007b27
Fix fullscreen example
2020-08-22 12:32:12 +02:00
Christian Rocha
e202d499a5
Cleanup textinputs example
2020-07-30 12:40:37 -04:00
Christian Rocha
43bcbfc84b
Clean up 'views' example
2020-07-30 12:32:24 -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
6d919a9213
Bump termenv in example
2020-07-29 20:07:26 -04:00
Christian Rocha
fe15629c9a
Bump bubbles dependency in examples
2020-07-23 12:48:22 -04:00
Christian Rocha
97ae9c6974
Update spinner example for Bubbles 0.4.0
2020-07-14 18:31:55 -04:00
Christian Rocha
8d26b4ebd7
Use mouse consts in termenv
2020-06-25 12:42:31 -04:00
Christian Rocha
de147c5061
Add mouse wheel support to pager example
2020-06-23 12:01:23 -04:00
Christian Rocha
d86cb562f0
Add basic mouse support
2020-06-22 20:41:26 -04:00
Christian Rocha
719d246edd
Bump dependencies
2020-06-22 13:54:16 -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
217c506a49
Add logging option in simple example
2020-06-16 22:32:06 -04:00
Christian Rocha
87434a2569
Buffer/ticker-based renderer
2020-06-08 12:48:57 -04:00
Christian Rocha
4ce9b4ea83
Fix broken logic in original "views" example
2020-06-05 14:12:02 -04:00
Christian Rocha
e79ee747c9
Fix import in simple example
2020-05-27 14:47:31 -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
6ceafa032c
Text input value getter/setter + cursor movement methods
2020-05-20 16:12:14 -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
Christian Rocha
88e4df4055
Update spinner example so it works with the spinner version in master
2020-05-11 17:38:05 -04:00