Commit Graph

799 Commits

Author SHA1 Message Date
Christian Rocha ee92bed288 Cleanup header/footer rendering in pager example with Lip Gloss 2022-01-13 12:49:20 -05:00
Christian Rocha 7517c1b1bd Add a border to the Glamour example per the viewport API update 2022-01-13 12:49:20 -05:00
Christian Rocha 7514ac937a Update glamour example per viewport API update 2022-01-13 12:49:20 -05:00
Christian Rocha 1ca2b1cd40 Update pager example per viewport API update 2022-01-13 12:49:20 -05:00
Christian Rocha bdb04767ff Add stopwatch example 2022-01-13 11:53:46 -05:00
Christian Rocha 03d1aa6c08 Rename 'countdown' example to 'timer' and use timer Bubble 2022-01-13 11:53:14 -05:00
Christian Rocha 99ba63fe8a
Bump main, example, and tutorial dependencies 2022-01-13 11:41:09 -05:00
Christian Muehlhaeuser 7ead21e787 Rename termdbms and add gh-prs to BubbleTea-powered programs 2022-01-11 10:26:26 +01:00
Max Brauer 4ac566c1f7 Remove unused func from send-msg example
‘randomEmoji()’ is redundant
2022-01-10 21:15:47 -05:00
Christian Rocha d266bc1616 Update result example to use StartReturningModel 2022-01-10 21:00:29 -05:00
Kyosuke Fujimoto 3a1b9fbe9f Fix list-default to use tea.WithAltScreen option 2022-01-08 14:36:37 -05:00
Kyosuke Fujimoto 14478e2a3c Fix list-default to be able to exit with ctrl+c 2022-01-08 14:36:37 -05:00
Christian Muehlhaeuser 98a8bcf62a Add read permissions to linter workflows 2022-01-07 13:25:29 -05:00
Christian Muehlhaeuser 3afda07603 Annotate why we ignore error 2022-01-07 13:25:29 -05:00
Christian Muehlhaeuser 91cfe19018 Add separate sets of hard- and soft-enforced linters 2022-01-07 13:25:29 -05:00
Christian Rocha bef2c8ce66 Always redraw when toggling the altscreen 2022-01-07 13:21:43 -05:00
Rick Booth 03c08875b3 Fix links in commands README 2021-12-29 23:25:34 +01:00
Christian Rocha 226c27f1a9 Add dragonfly build tags where appropriate 2021-12-11 15:13:17 -05:00
Ayman Bagabas 7b288f4353 Add cancelreader bsd go1.17 compilation flags
and fix "in switch on ident (mismatched types uint64 and uint32)" error
when building for 32-bit bsd
2021-12-11 14:53:15 +01:00
Mark Phelps cf3955fbe2 Update README.md
Add missing `to`
2021-11-23 13:57:33 -05:00
mikecoop83 dc7063bbec Remove extra word in commands README 2021-11-21 14:17:06 -05:00
Carlos A Becker cb0a72d682 test: nil renderer, options and screen 2021-11-15 10:28:46 -05:00
Christian Rocha ab89603d28 Remove unused filtering stuff from simple list example 2021-11-09 17:30:15 -05:00
Christian Rocha a55bf775cd Add missing build tags to fix builds in BSD systems 2021-11-03 12:33:27 -04:00
Christian Rocha 119144e78c ANSI compression is now opt-in via the WithANSICompressor program option 2021-10-30 13:04:27 -04:00
Niklas Johansson 56aa4efb60 tea: Add StartReturningModel()
Sometimes it is useful to obtain the final model after the
program has finished. Add StartReturningModel() (Model, error),
so that it is possible to obtain the final model.

Make sure to keep the original Start() error function, so that
everything is backwards compatible.
2021-10-28 14:19:46 -04:00
Christian Rocha 6dc000bdbd Examples and tutorials: update dependencies and go mod tidy 2021-10-28 09:45:43 -04:00
Christian Rocha e52d1f1e90 Bump reflow, termenv and go-isatty 2021-10-28 09:45:43 -04:00
Christian Muehlhaeuser c29912c179 Enable ANSI compressor
With this change all ANSI output will be piped through an ANSI compressor that
eliminates redundant ANSI sequences. As such the compressor can be considered
"lossless".
2021-10-28 09:45:43 -04:00
Christian Rocha 1f12bda862 Add program-level quit convenience method 2021-10-15 10:37:25 -04:00
Carlos A Becker e8289143a5 test: logging test
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-10-12 14:21:02 -04:00
Carlos A Becker 350b13cba7 test: key tests
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-10-12 14:21:02 -04:00
Carlos A Becker cfb871c5ca test: cmds
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-10-12 14:21:02 -04:00
Carlos A Becker 7934b60e21 test: logging
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-10-12 14:21:02 -04:00
Christian Rocha 0b4539170b Set ENABLE_VIRTUAL_TERMINAL_INPUT on Windows 2021-10-02 21:13:03 -04:00
Christian Rocha ab60d776f1 Add missing Go 1.17 build tags in Windows files 2021-10-02 21:13:03 -04:00
Christian Rocha 0e7cd09bf6 Tidy up comments 2021-09-28 14:00:29 -04:00
Christian Rocha 860f623112 Remove reundant "if ...; err != nil" check 2021-09-28 14:00:29 -04:00
Erik G e402e8b567
Cancelable reads (#120)
This commit implements cancelable reads, which allows Bubble Tea programs to run in succession in a single application. It also makes sure all goroutines terminate before `Program.Start()` returns.

Closes #24.
2021-09-28 13:30:11 -04:00
Christian Rocha 7396e37f3f Fix a performance rendering size miscalculation in the pager example 2021-09-17 16:39:02 -04:00
Christian Rocha d1fb02c39d Use the hot, new Go 1.17 build tags syntax 2021-09-07 16:13:48 -04:00
Christian Rocha 9d0e1db101 Tidy up tutorials 2021-09-07 15:38:47 -04:00
Christian Rocha ad19c664fe Condense/scope init cmd 2021-09-07 15:37:14 -04:00
Christian Rocha c5ed2b4a01 Add missing GoDocs 2021-09-07 15:37:14 -04:00
Christian Rocha 749e48df11 Update animated progress bar example per its current API 2021-09-07 14:16:55 -04:00
Carlos Alexandro Becker 60ddf33992
fix: avoid global state (#126)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-04 13:48:46 -03:00
Christian Rocha 59e5d8e2c9 Add sqlite-tui to the list of things built with Bubble Tea 2021-09-02 16:01:13 -04:00
Christian Muehlhaeuser 3930519979
Fix typos 2021-08-23 23:18:00 +02:00
Christian Muehlhaeuser 27ba7e7aa1 Add list examples 2021-08-23 22:18:28 +02:00
Christian Rocha 1b8495ed21 Add help bubble example 2021-08-23 22:05:20 +02:00