Commit Graph

14 Commits

Author SHA1 Message Date
6c10db760d fix: Changed the implementation to not require the direct use of identifiers, and to instead generate them using the hashes of the contents of each tree item 2024-11-14 17:35:40 -07:00
8a91f662dd fix: Changed the type constraints to use the ToText Ratatui trait 2024-11-14 16:38:38 -07:00
37d7b77f90 fix: Corrected doctests to pass 2024-11-14 16:04:39 -07:00
3e23a73f6b feat: Updated the Ratatui Tree Widget to allow the tree to story any data type that implements Into<Text>, so that users can also easily fetch data from within the tree based on what's selected for non-text data types. 2024-11-14 15:38:37 -07:00
735f111866 feat: Changed the tree to accept any type that implements Into<Text> so I can use the tree to fully store structs in the TUI as well as listing them 2024-11-13 13:06:15 -07:00
6e66e3e398 feat: Added the ability to get the text of any given TreeItem 2024-11-11 18:00:49 -07:00
EdJoPaTo
d676f66504 fix: must_use the structs 2024-05-23 15:15:08 +02:00
wenqian
c2b2340ef4 feat(tree_item): add method to expose identifier (#38) 2024-05-22 05:53:06 +02:00
EdJoPaTo
9dcccba31d refactor: improve lifetime names 2024-05-15 13:51:54 +02:00
EdJoPaTo
65fd1c04ed refactor!: reuse text style of tree item
BREAKING CHANGE: TreeItem style is gone
2024-05-15 13:51:54 +02:00
EdJoPaTo
775e5cc4ef refactor(TreeItem): simplify with Self 2024-05-15 13:51:54 +02:00
EdJoPaTo
fdd2c5436a feat!: cache last tree structure to simplify events
Things like key up/down dont require the items anymore to be used.
Instead a cached last state from last render is used.
2024-05-15 12:49:37 +02:00
EdJoPaTo
37ade72330 refactor(item): use keyword Self 2024-05-15 12:49:37 +02:00
EdJoPaTo
a60eb5266b refactor: simplify docs and LSP hints with names exactly as exported 2024-03-14 11:55:10 +01:00