Improve basics readme and fix some typos
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Christian Rocha · committed by Christian Rocha · parent 5e623ec · Browse files · 2 files·+16 added−18 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+16 added−18 removed
- other:+16 added−18 removed
Provenance
- Commit
118f2da- Tree
1e7a4a8- Author
Christian Rocha <christian@rocha.is>- Committer
Christian Rocha <christian@rocha.is>- Parent
5e623ec
2 files changed+16 added−18 removed
modified:tutorials/basics/README.md+4 added-4 removed
4 unmodified lines5 Architecture][elm]. It might not seem very Go-like at first, but once you get6 used to the general structure you'll find that most of the idomatic Go things7 you know and love are still relevant and useful here.8 9-By the way, the non-annotated version of of this program is available9+By the way, the non-annotated source code for this program is available10 [on GitHub](https://github.com/charmbracelet/bubbletea/master/tutorials/basics).11 12 This tutorial assumes you have a working knowledge of Go.13 3 unmodified lines17 18 For this tutorial we're making a to-do list.19 20 To start we'll define our package and import some libraries. Our only external21-import will be the Bubble Tea, library, which we'll call `tea` for short.21+import will be the Bubble Tea library, which we'll call `tea` for short.22 23 ```go24 package main25 201 unmodified lines227 * [The Charm Tool](https://github.com/charmbracelet/charm): the Charm user account manager228 229 ### Libraries we use with Bubble Tea230 231-* [Bubbles][bubbles] various Bubble Tea components we've built231+* [Bubbles][bubbles] various Bubble Tea components232 * [Termenv][termenv]: Advanced ANSI styling for terminal applications233 * [Reflow][reflow]: ANSI-aware methods for reflowing blocks of text234-* [go-runewidth][runewidth]: Get the physical width of strings in terms of terminal cells. Many runes, such as East Asian charcters and emojis, are two cells wide, so measuring a layout with `len()` often won't cut it!234+* [go-runewidth][runewidth]: Measure the physical width of strings in terms of terminal cells. Many runes, such as East Asian charcters and emojis, are two cells wide, so measuring a layout with `len()` often won't cut it.235 236 [termenv]: https://github.com/muesli/termenv237 [reflow]: https://github.com/muesli/reflow238 [bubbles]: https://github.com/charmbracelet/bubbles8 unmodified linesmodified:README.md+12 added-14 removed
6 unmodified lines7 <a href="https://github.com/charmbracelet/bubbletea/actions"><img src="https://github.com/charmbracelet/glow/workflows/build/badge.svg" alt="Build Status"></a>8 </p>9 10 The fun, functional and stateful way to build terminal apps. A Go framework11-based on [The Elm Architecture][elm].11+based on [The Elm Architecture][elm]. Bubble Tea is well-suited for simple and12+complex terminal applications, either inline, full-window, or a mix of both.13 13-Bubble Tea is well-suited for simple and complex terminal applications,14-either inline, full-window, or a mix of both. It's been battle-tested in15-several large projects and is production-ready.14+Bubble Tea has been battle-tested in several large projects and includes15+a number of performance optimizations. Among those is a standard16+framerate-based renderer as well as a renderer for high-performance scrollable17+regions, which works alongside the main renderer.18 17-It features a standard framerate-based renderer which is used by default as18-well as a renderer for high-performance scrollable regions, which works19-alongside the main renderer.20-19 To get started, see the tutorials below, as well as the [examples][examples].20 21 22 ## Tutorial2 unmodified lines25 Architecture][elm]. It might not seem very Go-like at first, but once you get26 used to the general structure you'll find that most of the idomatic Go things27 you know and love are still relevant and useful here.28 31-By the way, the non-annotated version of of this program is available32-[on GitHub](https://github.com/charmbracelet/bubbletea/master/tutorials/basics).29+By the way, the non-annotated source code for this program30+[is also available](https://github.com/charmbracelet/bubbletea/master/tutorials/basics).31 32 This tutorial assumes you have a working knowledge of Go.33 34 [elm]: https://guide.elm-lang.org/architecture/1 unmodified line36 ### Enough! Let's get to it.37 38 For this tutorial we're making a to-do list.39 42-To start we'll define our package and import some libraries. Our only external43-import will be the Bubble Tea, library, which we'll call `tea` for short.40+We'll start by defining our package and import some libraries. Our only external41+import will be the Bubble Tea library, which we'll call `tea` for short.42 43 ```go44 package main45 203 unmodified lines249 250 251 ## Libraries we use with Bubble Tea252 255-* [Bubbles][bubbles] various Bubble Tea components we've built253+* [Bubbles][bubbles] various Bubble Tea components254 * [Termenv][termenv]: Advanced ANSI styling for terminal applications255 * [Reflow][reflow]: ANSI-aware methods for reflowing blocks of text258-* [go-runewidth][runewidth]: Get the physical width of strings in terms of terminal cells. Many runes, such as East Asian charcters and emojis, are two cells wide, so measuring a layout with `len()` often won't cut it!256+* [go-runewidth][runewidth]: Measure the physical width of strings in terms of terminal cells. Many runes, such as East Asian charcters and emojis, are two cells wide, so measuring a layout with `len()` often won't cut it.257 258 [termenv]: https://github.com/muesli/termenv259 [reflow]: https://github.com/muesli/reflow260 [bubbles]: https://github.com/charmbracelet/bubbles24 unmodified lines