Add more eval examples + filtering examples by language + fix git concurrent usage (#28719)
Release Notes: - N/A --------- Co-authored-by: michael <michael@zed.dev> Co-authored-by: agus <agus@zed.dev>
This commit is contained in:
co-authored by
michael
agus
parent
a8b1ef3531
commit
d74f0735c2
@@ -0,0 +1,3 @@
|
||||
url = "https://github.com/charmbracelet/bubbletea.git"
|
||||
revision = "bc1c475eb0263aba13ef430f191677e153dc0320"
|
||||
language_extension = "go"
|
||||
@@ -0,0 +1,4 @@
|
||||
1. Adds a new `setWindowTitle` method to the `standardRenderer` struct that sets the terminal window title using the OSC 0 escape sequence. It includes thread safety with mutex locking and uses fmt.Fprintf to send the escape sequence with the provided title.
|
||||
2. Modifies the `handleMessages` method in `standardRenderer` to handle a new `setWindowTitleMsg` message type by calling the new `setWindowTitle` method. This completes the rendering-side implementation for window title updates.
|
||||
3. Updates the event loop in the Program struct to properly handle `setWindowTitleMsg` messages by passing them through to the renderer without additional processing, similar to other renderer-specific messages.
|
||||
4. Adds documentation to the commands tutorial README explaining how to set window titles in Bubble Tea applications. It shows examples of using `tea.SetWindowTitle()` in both Init and Update methods, and explains its usefulness for reflecting application state in the window title.
|
||||
@@ -0,0 +1,11 @@
|
||||
I’d like to add the ability to set terminal window titles in our Bubble Tea framework. This would let applications dynamically update the title bar (e.g., to show status or app names).
|
||||
|
||||
Requirements:
|
||||
|
||||
Expose a user-friendly way to set titles (e.g., a SetWindowTitle command).
|
||||
Ensure it works cross-platform with standard terminal escape codes.
|
||||
Include a minimal example and docs showing usage.
|
||||
Constraints:
|
||||
|
||||
Follow existing patterns for commands/messages.
|
||||
Thread-safe rendering.
|
||||
Reference in New Issue
Block a user