Commit Graph

657 Commits

Author SHA1 Message Date
Tom Payne 6bc35c758e docs: add chezmoi to users of Bubble Tea in the wild 2022-09-18 22:15:31 -04:00
Christian Rocha a7d6b5cd70 docs(tutorials): fix typo in basics tutorial and move a paragraph 2022-09-14 22:13:47 -04:00
Christian Rocha 1a0beff868
chore: use go 1.16 (#449)
* chore: use go 1.16 and gofmt accordingly

* chore: also update examples and tuts to go 1.16
2022-09-14 19:08:36 -04:00
Christian Rocha bf3996256b
docs: readme improvements (#448)
* docs: fix hierarchy in literate version of the basics tutorial

* docs: small correction to comment in literate tutorial

* docs: improve wording in logging section of the README

* docs: fix spelling (thanks maas)
2022-09-12 10:27:39 -04:00
bashbunni d0f3e1e052 fix: fix typos 2022-09-12 09:33:31 -04:00
bashbunni 14422f5357 docs: move tutorial back to README 2022-09-12 09:33:31 -04:00
dependabot[bot] 8ddf2a308f chore(deps): bump github.com/charmbracelet/lipgloss in /examples
Bumps [github.com/charmbracelet/lipgloss](https://github.com/charmbracelet/lipgloss) from 0.5.0 to 0.6.0.
- [Release notes](https://github.com/charmbracelet/lipgloss/releases)
- [Commits](https://github.com/charmbracelet/lipgloss/compare/v0.5.0...v0.6.0)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/lipgloss
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-07 12:42:23 -04:00
Raphael 'kena' Poss 624343388b Support linux console F1-F5 2022-09-04 17:52:17 +02:00
Christian Rocha 127f76226e docs(example): set wordwrap in glamour example 2022-09-02 13:01:14 -07:00
Christian Rocha 989d49f3e6 feat: add Sequence for running commands in order. Closes #413.
This deprecates Sequentially.
2022-08-30 13:07:05 -07:00
Maas Lalani 9fcebd151f docs: fix mobile resize issue on example using `picture` tag 2022-08-30 12:44:58 -04:00
Raphael 'kena' Poss 134a930f2d keys: properly support the alt modifier 2022-08-30 11:17:11 +02:00
Dakota Walsh f905b97756 docs: fix typo
The previous example was wrong and would result in the following
compiler error:
error (type) is not an expression

Just a simple typo, I've changed it to err to correctly reference the
function scoped variable named err.
2022-08-27 10:22:11 +02:00
bashbunni bb241ceb8b
docs: add debounce example (#348)
* docs: add debounce example

* refactor: reformat comments

Co-authored-by: Maas Lalani <maas@lalani.dev>

* refactor: init model before program start

Co-authored-by: Maas Lalani <maas@lalani.dev>

* feat: show tag in view

* docs(examples): improve debounce example comments

* docs(examples): remove extraneous lipgloss join

Co-authored-by: Maas Lalani <maas@lalani.dev>
Co-authored-by: Christian Rocha <christian@rocha.is>
2022-08-24 21:09:43 -07:00
Johann Cruz 636f2c2726
feat: catch SIGTERM (#412)
* Added SIGTERM Signal.

* docs: cleanup SIGINT/SIGTERM doc comment

Co-authored-by: Christian Rocha <christian@rocha.is>
2022-08-24 20:32:12 -07:00
bashbunni 30bb43e5ae
Composable view (#394)
* docs: creating nested models

* docs: move nested model to example

* docs: add working nested model example

* refactor: use tea.Batch in nested model example

* refactor: switch to composable view example

* refactor: tab select, add padding to boxes, only focused has border

* fix: add padding to timer to remove UI shift
2022-08-24 14:57:32 -07:00
Christian Rocha 31800cd0a7
fix(examples): remove unused type in textarea example 2022-08-19 09:29:18 -07:00
mattn 6b685056fc
fix: support multi-byte strings on Windows (#343)
* convert locale string to utf-8 on Windows

* update go.mod

* revert go fmt ./...

* fix(lint): use tabs in GoDoc example code

Co-authored-by: Christian Rocha <christian@rocha.is>
2022-08-19 09:25:22 -07:00
Maas Lalani a7f50a670c fix(split-editors): resize issue 2022-08-18 16:04:03 -04:00
Maas Lalani 4e9a56f70d
docs: Add CONTRIBUTING.md (#405)
Co-authored-by: erdaltsksn <erdal@taskesen.me>
2022-08-18 15:22:59 -04:00
Maas Lalani 8b7b7918d3 doc: Add table example 2022-08-18 15:09:02 -04:00
Sebastian Spaink 6faba760c2 docs: example interacting with tabs using lipgloss 2022-08-18 14:46:28 -04:00
Michele Filadelfia 9b459e503e
docs: Add `mandelbrot-cli` to Bubble Tea in the Wild (#385)
* docs: Add `mandelbrot-cli` to Bubble Tea in the Wild (#385)
2022-08-18 13:56:42 -04:00
Jerome Fitzgerald ae6fcd395e docs: README progress-download folder + ignore
📝 Update folder name in README to `progress-download` as
 that is what generates with `go build .`

🙈 Add the files genreated by `go build .` to root `.gitnore`
2022-08-18 12:57:30 -04:00
Tor Bratsberg 7c6ebc312c Doc: Add `Noted` to README.md 2022-08-18 12:55:48 -04:00
ottopiramuthu 99ed0962ff Add sku to Bubble Tea in the Wild 2022-08-18 12:53:33 -04:00
Christian Muehlhaeuser ca333e7d79 chore: bump go-isatty dep 2022-08-15 12:26:30 +02:00
Christian Muehlhaeuser 1e1b5f716d chore: gofmt sources 2022-08-15 12:25:55 +02:00
Ben Sadeh a7b1d7c737 Add circumflex to Bubble Tea in the Wild 2022-08-08 10:31:32 -04:00
jon4hz e2063ac1ea docs: rename flipperzero-tea to fztea 2022-07-29 08:13:59 -07:00
aklyachkin 2c7890bdf5 enable compilation on AIX 2022-07-29 15:58:06 +02:00
Christian Rocha b8fe9af45d docs: add a few more entires to 'Bubble Tea in the Wild' 2022-07-27 18:41:40 -07:00
Chip Castle fbd0bc9ce2 Add https://github.com/chip/pathos to Bubble Tea in the Wild 2022-07-27 18:14:45 -07:00
purpleclay 507a1cd4fe docs: add dns53 to bubbletea in the wild list 2022-07-27 18:08:36 -07:00
Maciej Ostaszewski 557ba7e336
docs: fix typo (#378) 2022-07-23 21:44:56 -04:00
dependabot[bot] ac4a1a1faa
feat(deps): bump github.com/muesli/cancelreader from 0.2.1 to 0.2.2 (#354)
* feat(deps): bump github.com/muesli/cancelreader from 0.2.0 to 0.2.2

Bumps [github.com/muesli/cancelreader](https://github.com/muesli/cancelreader) from 0.2.0 to 0.2.2.
- [Release notes](https://github.com/muesli/cancelreader/releases)
- [Commits](https://github.com/muesli/cancelreader/compare/v0.2.0...v0.2.2)

---
updated-dependencies:
- dependency-name: github.com/muesli/cancelreader
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix: examples

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-07-21 10:02:18 -03:00
bashbunni 2b9d4e3015 chore: fix Println typo 2022-07-20 01:46:48 +02:00
bashbunni 219ed4ed09
docs: link to tutorial + general README edits (#344)
* docs: clean up readme

* chore: add references

* chore: set to 80 char width

* docs: remove 404 docs link for now + tidy up READMEs

* docs: small language change in README

Co-authored-by: Christian Rocha <christian@rocha.is>
2022-07-19 16:23:37 -07:00
Christian Rocha ae4381a892
docs: fix hasty copypasta in BubbleZone URL in README (#375) 2022-07-19 15:47:15 -07:00
Liam Stanley 6a88c0fc4e
feat: add bubblezone to readme (closes #368) (#372)
* feat: add bubblezone to readme (closes #368)

- also fixed a handful of grammar-related items in the readme.

Signed-off-by: Liam Stanley <me@liamstanley.io>

* chore: promote BubbleZone to main resource section

Co-authored-by: Christian Rocha <christian@rocha.is>
2022-07-19 15:33:51 -07:00
Maas Lalani 0a0182e55a
chore: Bump bubbles to v0.13.0 (#363) 2022-07-08 10:08:24 -04:00
Maas Lalani 27e356a779
Add border to split-editors example (#362)
* doc(textarea): add border to focused textarea in split-editors example
* doc(textrea): tone down with border color in split-editors example

Co-authored-by: Christian Rocha <christian@rocha.is>
2022-07-05 14:31:32 -04:00
Christian Rocha a0680f8d85
Find a way to talk about Zeichenorientierte Benutzerschnittstelle (#122)
* Find a way to talk about Zeichenorientierte Benutzerschnittstelle

* Pluralization attempt
2022-07-01 22:17:02 -07:00
Maas Lalani 642d26a793
doc: Add `textarea` examples (#357)
* chore: bump bubbles@master

* doc(textarea): Add example of `chat` application with textarea

* doc(textarea): Add example of `textarea` prompting the user to tell a story

* doc(textarea): Add example of `split-editors` on how to manage multiple textareas
2022-07-01 12:20:04 -04:00
Maas Lalani db4f6474c9
doc: Fix `Printf` typo (#358) 2022-06-28 15:34:22 -04:00
Carlos Alexandro Becker ca32c4c628
feat: update cancelreader (#353)
* feat: update cancelreader

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>

* fix: go mod tidy

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>

* fix: go mod tidy

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>

* fix: use stable

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-06-23 09:19:36 -03:00
Max ebabec7008
feat: print unmanaged output above the application (#249)
* merge Adjective-Object/tea_log_renderer into standard renderer

* rename queuedMessages -> queuedMessageLines & break apart strings during message processing

* delete cursorDownBy

* += 1 -> ++ to make the linter happy

* add skipLines[] tracking back to standard renderer, and add rename skippedLines local to jumpedLines to clarify they are separate comments

* request repaint when a message is recieved

* Convert Println and Printf to commands

* Add package manager example demonstrating tea.Printf

* Use Unix instead of UnixMicro for Go 1.13 support in CI

* fix off by one in std renderer

* add Printf/Println to tea.go

* revert attempt at sequence compression + cursorUpBy

Co-authored-by: Maxwell Huang-Hobbs <mahuangh@microsoft.com>
Co-authored-by: Christian Rocha <christian@rocha.is>
2022-06-22 12:53:02 -04:00
bashbunni a2d0ac9d38
docs: add another progress bar example (#270)
* docs: add another progress bar example

* chore: copy edits

Co-authored-by: Christian Rocha <christian@rocha.is>
2022-06-15 11:55:47 -07:00
Maas Lalani d56d8ae854
Example: Credit Card Input Form (#338)
* feat(cc): Add Credit Card Input Form Example and `ValidatorFuncs` to ensure credit cards are valid
2022-06-13 09:39:01 -04:00
Christian Muehlhaeuser 21de41ac02 docs: fix deprecation notes 2022-06-08 15:02:12 +02:00