Repository navigation
v0.0.0-alpha.6
Pre-release
Pre-release
✨ Highlights
- Built-in tooltips: give any node a tooltip with
Tooltip(text), and text cut byTruncateunfolds its full
text in place under the pointer. They are off until the Root is givenWithTooltips. A tooltip opens once the
pointer rests on its node or the focus moves onto it, closes on the next key, click, wheel event, or when the
pointer leaves, and is placed where it hides the least of the frame.NoTooltipopts a node out, such as a secret,
TooltipOpenpins one open, andTipSinksends them to a node such as a status line. - Breaking: the Root sets the mouse mode:
Root.Viewnow sets the view'sMouseModeto the least the frame needs,
so a program no longer sets it, though it can still overwrite it.Centered,Transition,Present, andDrawable
return their own node types rather than aChild. - Editing text in a viewport:
Bufferis a balanced tree of lines withReplace,Insert,Delete, andEdit,
each returning aChangethat maps positions through the edit, and snapshots that cost nothing until the next
edit. AViewportgiven aCaretgets a range and a caret that the mouse, the program,SelectAll, and
CopySelectionall work on. - Selections stay on their text: a selection in a viewport or
TextMapis kept as positions in its text rather
than as cells, so it holds through scrolling, wrapping, and edits. A selection in aListkeeps the items its ends
are in when they scroll out of view, and copies the items between them that were never built. - The copy flash respects motion:
CopySelectionno longer sweeps its band whileanim.SetMotion(false)is in
effect, and a sweep already running ends once motion is turned off.
Changelog
⚠️ Breaking Changes
- 216c11f: add built-in tooltips (@lrstanley)
- Root.View sets the view's MouseMode to the least the frame needs, so a program no longer sets it, though it may still overwrite it. Centered returns a CenterNode, Transition and Present a TransitionNode, and Drawable a DrawableNode, rather than a Child.
✨ New Features
- d98e4db: keep selections as text positions, and edit a Buffer (@lrstanley)
- 579df43: examples: add an editor, and a list to the selection example (@lrstanley)
- 0e2dcae: examples: add a tooltips example (@lrstanley)
🐞 Bug Fixes
- eab581f: skip the copy flash while motion is off (@lrstanley)
📚 Documentation
- 8840597: make change to button creation method explicit in dialogs-and-toasts (@rapropos)
- fd54ebe: fill in the remaining follow-along gaps in dialogs-and-toasts (@lrstanley)
- 6836159: add editing, and selecting in viewports and lists (@lrstanley)
- 66947ff: add tooltips (@lrstanley)
📦 Dependency Updates
1 change
- eb34eab: deps: bump steep to v0.0.0-alpha.12 (@lrstanley)
Full changelog: v0.0.0-alpha.5...v0.0.0-alpha.6
📦 Install
go get bloomfx.dev/bloom@v0.0.0-alpha.6Docs: bloomfx.dev/bloom
💬 What to do next?
- 🙋♂️ Running into an issue or want a specific feature? Take a look here!
- ⌚ Find previous releases.
- 🗝️ Find a vulnerability? Check out our Security and Disclosure policy.
- 🔗 Other useful links: