Releases: EdJoPaTo/tui-rs-tree-widget
Releases · EdJoPaTo/tui-rs-tree-widget
v0.23.0
v0.22.0
v0.21.0
v0.20.0
- Simplification of
TreeState
usage- key / mouse / selection methods don't require the items anymore. Instead, they assume the state of last render.
- add
TreeState::click_at
andTreeState::rendered_at
#36 - add
TreeState::opened
and simplifyTreeState::selected
for direct access to current values by reference - rename
TreeState::select_visible_relative
toTreeState::select_relative
due to confusion what 'visible' means - less internal clones
Tree::new
takes items as reference. #32TreeItem::style
is now part ofTreeItem::text
- add
TreeItem::identifier
for access to the identifier of the item #38
BREAKING CHANGES:
TreeState
key / mouse / selection methods no longer take theitems
argument.TreeState::selected
returns a reference instead of aVec
.TreeState
is no longerClone
able due to holding the state of last renderTreeItem::style
is gone and used fromTreeItem::text
Thanks to @sandercm and @fioncat for their PRs and @thscharler for the ideas leading to some improvements ✨
v0.19.0
v0.18.0
v0.17.0
- feat: scroll independently from selection 01726df
- feat: select_*() returns whether it changed 969b78a
- build: update to ratatui 0.26 4cbe932
- perf(key_left): remove clones 632a95f
- perf!: flatten -> TreeState::flatten d1a2412
BREAKING CHANGES:
flatten -> TreeState::flatten d1a2412
-tui_tree_widget::flatten(state.get_all_opened(), &items);
+state.flatten(&items);
v0.16.0
v0.15.0
- feat: generic identifier (#27) b914819
- feat: add TreeState::select_visible_index and relative 9a47f5e
BREAKING CHANGE: the generic identifier requires some different method arguments.
Mainly this introduces the identifier argument on TreeItem::new
.
See its documentation on docs.rs for more background.