lipgloss icon indicating copy to clipboard operation
lipgloss copied to clipboard

feat(tree): modify children of existing `Tree`

Open bashbunni opened this issue 10 months ago • 1 comments

This allows users to modify existing Trees. In the current version of this table, there is no way to change existing children outside of adding a new child with Tree.Child().

This also handles operations on Leaf types to turn them into Trees.

See examples for usage on these changes. Those examples are testable, so see their output in comment to see how these API changes work.

Related: https://github.com/charmbracelet/lipgloss/discussions/452

bashbunni avatar Jan 10 '25 19:01 bashbunni

Need to look at the feedback from https://github.com/charmbracelet/lipgloss/discussions/452 more closely

bashbunni avatar Mar 18 '25 21:03 bashbunni