fix(deps): update module github.com/charmbracelet/bubbletea to v1 #3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v0.23.1
->v1.2.4
Release Notes
charmbracelet/bubbletea (github.com/charmbracelet/bubbletea)
v1.2.4
Compare Source
Changelog
Bug fixes
4ad0792
: fix: cursor position adjustment after exiting alt screen (#1241) (@semihbkgr)ede8caa
: fix: renderer: keep a separate count of lines rendered in the alt screen (@aymanbagabas)Other work
76b0f81
: ci: fix goreleaser config (#1238) (@caarlos0)Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.
v1.2.3
Compare Source
Altscreen-not-altscreen
This release fixes a sneaky longstanding bug in the renderer where mis-paints could happen when toggling in and out of the altscreen if the height of the TUI changed whilst in the altscreen. Special thanks to @applejag for reporting the issue and @semihbkgr for the fix.
Changelog
f8f840c
: fix: cursor position adjustment after exiting alt screen (#1241) (@semihbkgr)Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.
v1.2.2
Compare Source
Hi! This release fixes some bugs found the fast new renderer introduced in v1.2.0. Happy rendering!
Fixed
New Contributors
Full Changelog: charmbracelet/bubbletea@v1.2.0...v1.2.2
Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.
v1.2.1
Compare Source
v1.2.0
Compare Source
It’s performance boost time
Sometimes you have to take matters into your own hands. That’s exactly what @LeperGnome did when he wanted faster rendering. This release features adjustments to the rendering algorithm for faster repaints. We encourage you to upgrade and give it a go!
Changelog
New Contributors
Full Changelog: charmbracelet/bubbletea@v1.1.2...v1.2.0
Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.
v1.1.2
Compare Source
A tiny tiny release that fixes the tests on Windows, and uses the latest
ansi
package definitions.Changelog
New Features
Bug fixes
Documentation updates
Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.
v1.1.1
Compare Source
Don't panic!
Panicking is a part of life…and a part of workin’ in Go. This release addresses two edge cases where a
panic()
could tank Bubble Tea and break your terminal:Panics outside of Bubble Tea
If a panic occurs outside of Bubble Tea you can use
Program.Kill
to restore the terminal state before exiting:Panics in Cmds
If a panic occurs in a
Cmd
Bubble Tea will now automatically restore the terminal to its natural state before exiting.Happy panicking (if that makes any sense).
Changelog
Fixed!
0589921
: fix: recover from panics within cmds (@aymanbagabas)6e71f52
: fix: restore the terminal on kill (@aymanbagabas)Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.
v1.1.0
Compare Source
Let’s focus
Lose focus much? This release contains support for focus-blur window events.
Usage
All you need to do is to add the program option to your application:
Then later in your
Update
function, you can listen for focus-blur messages:For details, see WithReportFocus.
Tmux
If you're using
tmux
, make sure you enable thefocus-events
option in your config.Happy focusing (whatever that means)!
Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.
v1.0.1
Compare Source
This release that fixes the way carriage returns are handled with using the WithoutRenderer
ProgramOption
and improves the way it works overall by not altering the terminal the way we normally do when starting aProgram
. For details see #1120.c69bd97
: fix: we don't initialize the terminal when using a nilRenderer (#1120) (@aymanbagabas)Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.
v1.0.0
Compare Source
At last: v1.0.0
This is an honorary release denoting that Bubble Tea is now stable. Thank you, open source community, for all your love, support, and great taste in beverage over the past four years.
Stay tuned for v2: we have some great things coming.
Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.
v0.27.1
Compare Source
This is a lil’ workaround for a hang that can occur when starting a program using Lip Gloss. For details see https://github.com/charmbracelet/bubbletea/pull/1107.
Changelog
Bug fixes
d6458e0
: fix: force query the terminal bg before running any programs (@aymanbagabas)Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.
v0.27.0
Compare Source
Suspending, environment hacking, and more
Hi! This release has three nice little features and some bug fixes. Let's take a look:
Suspending and resuming
At last, now you can programmatically suspend and resume programs with the
tea.Suspend
command and handle resumes with thetea.ResumeMsg
message:Example
There's also a
tea.SuspendMsg
that flows throughUpdate
on suspension.Special thanks to @knz for prototyping the original implementation of this.
Setting the environment
When Bubble Tea is behind Wish you may have needed to pass environment variables from the remote session to the
Program
. Now you can with the all new tea.WithEnvironment:Requesting the window dimensions
All the Bubble Tea pros know that you get a
tea.WindowSizeMsg
when theProgram
starts and when the window resizes. Now you can just query it on demand too with thetea.WindowSize
command.Changelog
New!
7d70838
: feat: add a cmd to request window size (#988) (@aymanbagabas)ea13ffb
: feat: allow to suspend bubbletea programs (#1054) (@caarlos0)cae9acd
: feat: set the program environment variables (#1063) (@aymanbagabas)Fixed
7c1bfc0
: query window-size in a goroutine (#1059) (@aymanbagabas)4497aa9
: reset cursor position on renderer exit (#1058) (@aymanbagabas)d6a19f0
: wrapErrProgramKilled
error (@aymanbagabas)4a9620e
: fix bugs in package-manager example (@AkshayKalose)Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.
v0.26.6
Compare Source
Changelog
Bug fixes
60a57ea
: fix: nil deref on release terminal (@aymanbagabas)Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.
v0.26.5
Compare Source
Fix special keys input handling on Windows using the latest Windows Console Input driver.
Changelog
New Features
42a7dd8
: feat(ci): use goreleaser for releases (#1023) (@aymanbagabas)Bug fixes
a08802e
: fix(windows): coninput not handling control sequences (#1041) (@Sculas)Other work
2d65ed6
: chore(examples): removed use of deprecated Copy (@arianizadi)Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.
v0.26.4
Compare Source
Fix panics! Using
program.SetWindowTitle
and others may panic if they were called before the program starts.Also note that
program.SetWindowTitle
is now deprecated. To set the window title usetea.SetWindowTitle
command.What's Changed
Full Changelog: charmbracelet/bubbletea@v0.26.3...v0.26.4
Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or Discord.
v0.26.3
Compare Source
This is a patch release that prevents
tea.WindowSizeMsg
s from being fired during altscreen changes on Windows. This was due to the fact that Windows emits awindow-size-event
on altscreen changes even if the size hand’t changed. Now, we cache the window-size and compare before sending the message to theModel
.What's Changed
Full Changelog: charmbracelet/bubbletea@v0.26.2...v0.26.3
Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or Discord.
v0.26.2
Compare Source
This fixes a small regression that was introduced in v0.26.0 related to the first line on the first render not being displayed correctly. Thank you @mistakenelf for pointing this out in https://github.com/charmbracelet/bubbletea/issues/1000!
What's Changed
Full Changelog: charmbracelet/bubbletea@v0.26.1...v0.26.2
Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or Discord.
v0.26.1
Compare Source
This is a quick one to fix a Windows shortcoming in the last release acutely identified by our pal @jon4hz. Thank you!
What's Changed
Full Changelog: charmbracelet/bubbletea@v0.26.0...v0.26.1
Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or Discord.
v0.26.0
Compare Source
Bracketed Paste, Windows Improvements, Mainframes, and more
What do tapioca balls, IBM mainframes, and the Microsoft Windows Console API have in common? Bubble Tea v0.26.0, that’s what. Let’s get to it.
⚡️ Windows Input Improvements
A few years ago @erikgeiser, a penetration tester and ex-particle physicist, wrote this awesome library called coninput to majorly improve Bubble Tea input on Windows. @aymanbagabas has implemented the library in Bubble Tea and input on Windows is roughly 1000 times better now. In the short term, this means that for Windows users inputting non-Latin characters (like Greek, Cyrillic, Korean, Chinese and so on) stuff will “just work.”
The bigger news, however, is that this paves the way for Windows parity with our forthcoming support for super high fidelity input via Kitty Keyboard and Fixterms.
🍳 Hot Windows Resize Events
Terminal emulators on Windows don’t support the
SIGWINCH
signal, which is sent when the terminal is resized. It’s been a huge bummer for a really long time. Thanks (again) to @erikgeiser and @aymanbagabas, we’re now able to reach deep into Windows’ underpinnings, detect window resizes, and sendtea.WindowSizeMsg
s accordingly! This is a glorious moment for Bubble Tea on Windows indeed.🫠 Bracketed Paste
While building a query editor for a CockroachDB client, @knz noticed that Bubble Tea didn't support Bracketed Paste. Performance-wise, that sucks because it means pasting large bodies of text (like SQL queries) will normally be seen as a bunch of little successive keypresses. That’s where Bracketed Paste comes in. When enabled at the terminal-level Bracketed Paste lets you slam down a bunch of text with one big, fat input event.
Bubble Tea enables bracketed paste by default, however you can opt out of it with the
WithoutBracketedPaste()
program option:You can also enable and disable it on demand with the
EnableBracketedPaste()
andDisableBracketedPaste()
commands.🌿 Multiline
tea.Println
In case you forgot,
tea.Println
(and it’s brothertea.Printf
) is aCmd
that lets you print unmanaged output above a Bubble Tea program, similar to what you see with package managers likeapt-get
. Thanks to @Adjective-Object (who also implementedtea.Println
in the first place) now you can send multi-line output, too. For atea.Println
refresher see the package manager example.📀 Hello, z/OS
Don’t you think it’s about time we all ran Bubble Tea apps on our mainframes? Thanks to @dustin-ward that dream is now a reality, so long as you have a z/OS mainframe. We're thrilled to announce that Bubble Tea is now fully supported on z/OS.
🌹 Bug fixes
Bugfixes are the unsung heroes that sometimes get buried below the feature listings. This release has them and they’re good ones; see the changelog below for details.
Changelog
New!
tea.Println()
messages by @Adjective-Object in https://github.com/charmbracelet/bubbletea/pull/490Changed
Fixed
New Contributors
Full Changelog: charmbracelet/bubbletea@v0.25.0...v0.25.1
Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or Discord.
v0.25.0
Compare Source
Major mouse improvements, better input parsing, and lots more!
We hope you’re ready for winter. Unless you’re in the southern hemisphere (like @caarlos0) in which case, we hope you’re ready for summer. In either case, we hope you have a happy new year if the Julian calendar is something you’re into.
There are a bunch of good features in this release and a ton of input-related improvements. Read on for more!
Extended Mouse Mode
Bubble Tea now supports Extended Mouse Mode (aka SGR mode) which makes now mouse support in Bubble Tea way, way better.
Prior to this release Bubble Tea used the X10 mouse protocol. X10 was last released in 1986: a time when screen resolutions were smaller, memory limits were low, and a terminal sizes were tiny. For terminals and mice this meant that the mouse tracking stopped after the 127th horizontal cell. Well, thanks to the elite abilities of @aymanbagabas Bubble Tea can now track mouse movements across the entire terminal window, no matter how enormous.
And that's not all: Bubble Tea now has higher fidelity access to mouse operations such as shift, ctrl, and alt modifiers, mouse button release events, and a big range of mouse button and mouse wheel events.
For details see the docs for the new and improved
MouseEvent
.Setting the Window Title
@aymanbagabas also wanted to be able to set the terminal window title with Bubble Tea, so he added the
SetWindowTitle
Cmd
. Now setting the window title is as simple as:FPS Control
Have you ever thought “Bubble Tea is too fast and I just can’t handle it?” Or perhaps 60fps is too slow and you want to go full 120fps. Now, thanks to @tomfeigin’s
WithFPS
ProgramOption
you can:Better Input, Better Living
@knz is just incredible. He took a look at Bubble Tea’s input parser and whipped it into shape with what felt like a flick of the wrist. Keyboard input is now more efficient than ever and very large amounts of input can be parsed with the greatest of ease. It's hard to overstate how impactful his contributions are—and there are more in the pipe.
Changelog
New!
SetWindowTitle
command by @aymanbagabas in https://github.com/charmbracelet/bubbletea/pull/611Fixed
ReleaseTerminal
/RestoreTerminal
thread safe by @caarlos0 in https://github.com/charmbracelet/bubbletea/pull/791Full Changelog: charmbracelet/bubbletea@v0.24.2...v0.25.0
New Contributors
Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or Discord.
v0.24.2
Compare Source
This point release fixes a race condition that could occur when stopping the default renderer:
Full Changelog: charmbracelet/bubbletea@v0.24.1...v0.24.2
Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or Discord.
v0.24.1
Compare Source
You can pipe again
This point release fixes a regression introduced in
v0.24.0
in which keyboard and mouse input would be lost when piping and redirecting into a program with default inputs. Special thanks to @pomdtr for…piping up about the regression.Full Changelog: charmbracelet/bubbletea@v0.24.0...v0.24.1
Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or Discord.
v0.24.0
Compare Source
It is finally time for another Bubble Tea release!
This release contains 31 commits by 14 contributors. Thank you everyone! 💕
Without further ado, here's a list of the most important changes:
Message handling and filtering
The
tea.QuitMsg
is now exported and you can usetea.WithFilter
to filter which messages your model will receive:Testing
We are introducing an our very own
/x
package, which contains theteatest
package.With
teatest
, you can easily run atea.Program
, assert its final model and/or output.This package required a couple of new methods on Bubble Tea, namely
Program.Wait()
,WithoutSignals
.You can see an example usage in the
simple
example.Bug fixing
We try hard to not let any of them pass, but we know, sometimes a few of them do. This release also gets rid of a bunch of them.
What's Changed
New Contributors
Full Changelog: charmbracelet/bubbletea@v0.23.2...v0.24.0
Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or Discord.
v0.23.2
[Compare Source](https://redirect.github.com/charmbracel
Configuration
📅 Schedule: Branch creation - "* 0-3 * * *" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.