Commit Graph

583 Commits

Author SHA1 Message Date
Christian Rocha 4dc6992767
Cmds for scrolling + handle renderer msgs in a renderer method 2020-06-17 18:46:04 -04:00
Christian Rocha a492302609
Adjust exports of new msgs + add msg to replace ignored lines 2020-06-17 18:19:27 -04:00
Christian Rocha 4d68ed07ef
Add header and footer to pager example 2020-06-17 15:00:13 -04:00
Christian Rocha 8539cfcf8c
Fix a bug where left area on the first line was not always cleared 2020-06-17 14:50:39 -04:00
Christian Rocha debaf312f7
Disable resize listening on windows since it's not supported 2020-06-17 12:27:16 -04:00
Christian Rocha a152cce4b6
Adjust comments + move some code around 2020-06-17 12:12:45 -04:00
Christian Rocha ae9ea29c0e
Fix line clearing bug 2020-06-17 11:49:33 -04:00
Christian Rocha 090c983bd5
Bump termenv and futher integrate it into terminal controls 2020-06-17 11:17:41 -04:00
Christian Rocha 830beecffb
Fix render's view clearing loop 2020-06-17 10:48:08 -04:00
Christian Rocha 217c506a49
Add logging option in simple example 2020-06-16 22:32:06 -04:00
Christian Rocha b72009105b
Fix infinte loop + backwards ignore behavior 2020-06-16 22:30:47 -04:00
Christian Rocha 683473c26d
Blind pass at adding high performance scrolling into the renderer 2020-06-16 22:06:46 -04:00
Christian Rocha da86f9ac1a
Renderer comments 2020-06-16 11:05:10 -04:00
Christian Rocha 01032f0579
Set FPS in a more readable fashion (thanks @muesli!) 2020-06-15 20:01:18 -04:00
Christian Rocha 45f62bad33
Add go-runewidth to resources in README 2020-06-11 21:51:52 -04:00
Christian Rocha 3aba272a10
Fix nonsensical comment 2020-06-11 21:42:40 -04:00
Christian Rocha 5ccb786eec
Um, the package is called Bubble Tea, thank-you-very-much 2020-06-11 19:34:08 -04:00
Christian Rocha 55a8d1853e
Comments 2020-06-08 12:48:57 -04:00
Christian Rocha 3647042096
Fix renderer bug where UI could be duplicated in inline-TUIs 2020-06-08 12:48:57 -04:00
Christian Rocha 2896e0e8e6
Remove now unused vars from old renderer 2020-06-08 12:48:57 -04:00
Christian Rocha fcbc427098
Properly shut down renderer when quitting program 2020-06-08 12:48:57 -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 b10f6d6791
How about if we count the lines rendered correctly 2020-05-28 10:47:15 -04:00
Christian Rocha e7130c9633
Remove an extraneous var and rename another var for clarity 2020-05-28 10:26:03 -04:00
Christian Rocha 99df3d4226
Only render if view has actually changed 2020-05-28 10:20:59 -04:00
Christian Rocha e79ee747c9
Fix import in simple example 2020-05-27 14:47:31 -04:00
Christian Rocha a454089275
Update example in README 2020-05-27 14:25:31 -04:00
Christian Rocha 35731d4046
Bump termenv dependency 2020-05-26 13:04:56 -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 dd79195e1b
Add alt+left/right and alt+b/f to jump between words in text input 2020-05-25 14:21:03 -04:00
Christian Muehlhaeuser bb85a886fd
Use consts for default values 2020-05-25 14:12:42 +02:00
Christian Muehlhaeuser cd4e02b1a8
Simplify code a bit 2020-05-25 14:12:30 +02:00
Christian Muehlhaeuser e8b7e510bb
Simplify key/sequence map 2020-05-25 14:03:59 +02:00
Christian Muehlhaeuser 0957c58e05
Make type documentation godoc-compliant 2020-05-25 14:02:46 +02:00
Christian Muehlhaeuser bb19d42cc0
Rename PaginatorType to Type
Type name would be used as paginator.PaginatorType by other packages,
and that stutters.
2020-05-25 13:55:37 +02:00
Christian Muehlhaeuser 6db7c48ba8
Use a buffered channel for signal.Notify 2020-05-25 13:43:02 +02:00
Christian Rocha 15e623358e
Bump dependencies, namely github.com/pkg/term 2020-05-21 22:31:39 -04:00
Christian Rocha bdf6f07c75
Resetting a text input also resets the cursor blink state 2020-05-21 22:31:07 -04:00
Christian Rocha 9d175b5ed7
Add ability to log directly to a file 2020-05-21 16:59:26 -04:00
Christian Rocha 6ceafa032c
Text input value getter/setter + cursor movement methods 2020-05-20 16:12:14 -04:00
Christian Rocha 826420a00e
Add method to text input model to reset the state 2020-05-20 15:03:29 -04:00
Christian Rocha 3868858947
Support bounded width in text input 2020-05-20 15:03:21 -04:00
Christian Rocha 9fc0d0ea82
Support background colors in textinput 2020-05-19 14:58:50 -04:00
Christian Rocha ee5f82579f
Don't treat the space character as a control character
There are drawbacks to both sides of this, but in the end, it seems to make
more sense to treat spaces as regular runes.
2020-05-19 14:41:55 -04:00
Christian Rocha dafb022fe5
Pager is now called viewport and allows for non-default keybindings 2020-05-19 13:18:32 -04:00