Skip to content

Releases: almonk/bonsplit

Release list

v1.1.1

Choose a tag to compare

@almonk almonk released this 29 Jan 14:19

Fixed

  • Fixed delegate notifications not being sent when closing tabs (#2)
    • Tabs now correctly communicate through BonsplitController for proper delegate callbacks

Added

  • New public method closeTab(_ tabId: TabID, inPane paneId: PaneID) -> Bool for efficient tab closing when pane is known

v1.1.0

Choose a tag to compare

@almonk almonk released this 26 Jan 23:38

Two-Way Synchronization API

Geometry Query

  • layoutSnapshot() - Get flat list of pane geometries with pixel coordinates
  • treeSnapshot() - Get full tree structure for external consumption
  • findSplit(_:) - Check if a split exists by UUID

Programmatic Updates

  • setDividerPosition(_:forSplit:fromExternal:) - Set divider position with loop prevention
  • setContainerFrame(_:) - Update container frame when window moves/resizes

Geometry Notifications

  • didChangeGeometry delegate callback - Notified when any pane geometry changes
  • shouldNotifyDuringDrag delegate callback - Opt-in to real-time notifications during divider drag

New Types

  • LayoutSnapshot, PixelRect, PaneGeometry, ExternalTreeNode, ExternalPaneNode, ExternalSplitNode, ExternalTab

Debug Tools

  • Debug window in Example app for testing synchronization features