Commit Graph

24 Commits

Author SHA1 Message Date
8a91f662dd fix: Changed the type constraints to use the ToText Ratatui trait 2024-11-14 16:38:38 -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
EdJoPaTo
d676f66504 fix: must_use the structs 2024-05-23 15:15:08 +02:00
EdJoPaTo
2fd909aa0f refactor(flatten): improve variable/test names 2024-05-15 14:45:01 +02:00
EdJoPaTo
9dcccba31d refactor: improve lifetime names 2024-05-15 13:51:54 +02:00
EdJoPaTo
e9656f82d1 test(flatten): ensure depth works 2024-05-15 13:51:54 +02:00
EdJoPaTo
537dc8021e perf(flatten): fewer clones 2024-05-15 13:49:50 +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
a60eb5266b refactor: simplify docs and LSP hints with names exactly as exported 2024-03-14 11:55:10 +01:00
EdJoPaTo
86458ffc39 perf: prefer into_iter() over clone() 2024-02-24 03:09:58 +01:00
EdJoPaTo
ec359d513b refactor: use multi character variable name 2024-02-22 18:38:52 +01:00
EdJoPaTo
766d4f1d58 refactor: one struct per file 2024-02-22 18:32:35 +01:00
EdJoPaTo
d1a241266f perf!: flatten -> TreeState::flatten
This allows to use internals without cloning

BREAKING CHANGE: flatten is not directly available anymore
2024-01-15 15:50:06 +01:00
EdJoPaTo
b914819283 feat: generic identifier (#27) 2023-10-30 13:18:58 +01:00
EdJoPaTo
58a80b64a7 docs: improve doc comments 2023-10-26 16:46:50 +02:00
EdJoPaTo
3f30effd19 feat: migrate to ratatui (#26)
Co-authored-by: Ben PHL <benphawke@gmail.com>
2023-09-04 12:44:30 +02:00
EdJoPaTo
8a53caced7 refactor(lint): improve and adapt to lints 2023-05-22 11:50:52 +02:00
EdJoPaTo
a902bce55d docs: use doc comments and doc tests 2022-11-06 13:48:49 +01:00
EdJoPaTo
15fbc26617 refactor(clippy): adapt to new lints 2021-05-13 09:24:54 +02:00
EdJoPaTo
45083fc332 refactor: prefer turbofish 2021-05-13 09:18:42 +02:00
EdJoPaTo
e3ac2554c3 refactor: let rust elide lifetimes 2020-12-31 17:55:44 +01:00
EdJoPaTo
5265bf1d1e fix: use getter for all_opened
dont allow access to struct field
2020-10-31 21:31:54 +01:00
EdJoPaTo
b539806734 Initial commit 2020-10-30 16:30:07 +01:00