Commit Graph

729 Commits

Author SHA1 Message Date
Raphael 'kena' Poss
08518987f5 Reorder the function keys in key.go for better troubleshootability
Here the list of keys did not change, I simply re-ordered the lines
in the file.
2022-10-03 19:56:10 +02:00
Raphael 'kena' Poss
ce923aabbf Add missing alt+ variant for F13-F16 2022-10-03 19:56:10 +02:00
Raphael 'kena' Poss
290ef8dce5 Add missing alt+ variant for F5-F12 on urxvt 2022-10-03 19:56:10 +02:00
Raphael 'kena' Poss
d9b2889cf4 Add support for ctrl+, ctrl+shift+ for home/end keys 2022-10-03 19:56:10 +02:00
Raphael 'kena' Poss
5f76c2036d Reorganize key.go for clarity 2022-10-03 19:56:10 +02:00
Raphael 'kena' Poss
2fe4aad5e6 Fix home/end on vt100 2022-10-03 19:56:10 +02:00
Maas Lalani
70576bc9e0 examples/README.md GIFs (#470)
* docs(examples): Add `examples/README.md`

Adds `examples/README.md` with GIFs of examples

* docs(examples): Individual READMEs

* docs(examples): add short description to each example
2022-10-03 12:06:18 -04:00
Leo Robinovitch
cd3f486ab5 Add wander to Bubble Tea in the Wild 2022-09-29 19:06:25 +02:00
Christian Muehlhaeuser
b404baff60 chore: remove incorrect space before nolint directives 2022-09-27 10:02:34 +02:00
Christian Muehlhaeuser
5c8eb85b69 test: exec binary from within tea.Program 2022-09-27 09:16:00 +02:00
Christian Muehlhaeuser
b1c9d80603 fix: wait for read-loop to finish before spawning child process 2022-09-27 09:10:54 +02:00
Christian Muehlhaeuser
93c63f07aa docs: clean up and re-order 'Bubble Tea in the Wild' 2022-09-27 06:59:56 +02:00
Matt Joiner
d79ebda5cf Fixes for examples/progress-download (#444) 2022-09-27 06:42:43 +02:00
Scott Leggett
900a842f50 fix: off-by-one error in spinner example 2022-09-27 05:53:21 +02:00
Christian Muehlhaeuser
5d1ffa74cd test: quit/kill model after the first render 2022-09-27 05:02:33 +02:00
Raphael 'kena' Poss
2fe97e07d0 Support the insert key
This can be used in e.g. textarea / textinput to enable "overwrite
mode".
2022-09-27 04:01:39 +02:00
Raphael 'kena' Poss
cb4ff09b13 Fix 1-indexing when entering alt screen 2022-09-27 03:46:19 +02:00
Christian Muehlhaeuser
6c449e55bf feat: use Termenv.Output to write to tty 2022-09-27 02:49:36 +02:00
freddysilber
5c4218e5f6 chore: fix typos in tutorials/commands/README.md
* chore: fixes typos in `tutorials/commands/README.md`
2022-09-26 15:58:52 -04:00
fedeztk
27ba549110 docs: added got to Bubble Tea in the Wild (#419) 2022-09-26 07:47:59 +02:00
Maas Lalani
e5cbc04f94 docs: use styled glamour markdown within viewport 2022-09-23 16:46:56 -04:00
Christian Muehlhaeuser
e9fe942675 test: run model with provided input and check output 2022-09-22 19:40:40 +02:00
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