Skip to content

v0.0.0-alpha.9

Pre-release
Pre-release

Choose a tag to compare

@lrstanley lrstanley released this 19 Nov 08:15
v0.0.0-alpha.9
e8b804c

Highlights

  • Gutters run the viewport's full height. A gutter used to stop at the last line, so one with a background ended partway down. Gutter funcs are now also called for the rows below the last line, with a GutterRow.Line of -1, and LineNumbers draws those rows blank in its style. If your gutter func indexes by r.Line, check for -1 first:

    bloom.Viewport(m.file).Gutter(2, func(r bloom.GutterRow) string {
    	if r.Line >= 0 && !r.Continued && m.changed[r.Line] {
    		return changed.Render("▎")
    	}
    	return ""
    })

    See Line numbers and gutters.

  • Handlers and tooltips that change without changing the screen take effect. Bubble Tea keeps the view it painted over a newer one that draws the same, and the mouse used to be routed with that older frame. Now it's routed with the latest frame whenever that frame draws the same, so a tooltip a node gets while the pointer is over it opens on the next move.

Changelog

🐞 Bug Fixes

📦 Dependency Updates

1 change

Full changelog: v0.0.0-alpha.8...v0.0.0-alpha.9

📦 Install

go get bloomfx.dev/bloom@v0.0.0-alpha.9

Docs: bloomfx.dev/bloom

💬 What to do next?