ArthurSonzogni / FTXUI

:computer: C++ Functional Terminal User Interface. :heart:
MIT License
6.49k stars 392 forks source link

Add tree panel component with optional data source #413

Open bluesaka111 opened 2 years ago

ArthurSonzogni commented 2 years ago

What do you think about the Collapsible and the Maybe components?

See example: https://arthursonzogni.com/FTXUI/examples/?file=component/collapsible

This was meant to be used as a building block for some tree views. What kind of API would you like to see?

bluesaka111 commented 2 years ago

A simple tree view that accept c++ struct as data source for branch generation is more than enough. Something similar to tree or pactree will fit ftxui perfectly.

ArthurSonzogni commented 2 years ago

Could you specify what kind of API you are thinking about?

I would like to understand if we could end up with something sufficiently general and easy to use. I suspect user best way general way is to use Collapsible or is inner components Checkbox/Maybe.

Adding a specific tree view might be a better fit inside a depending library. Maybe I should add one dedicated for browsing filesystem.

lsem commented 9 months ago

@ArthurSonzogni I just checked Collapsible example. I need to tell this. What an amazing library! Piece of C++ programming art, basically. Thank you.

lsem commented 9 months ago

If we had something like this in GUI domain. With similar design, middle abstraction level, highest quality text, maybe GPU accelerated. For modern, fast, boutique cross platform software.