r3bl-org / r3bl-open-core

TUI framework and developer productivity apps in Rust 🦀
https://r3bl.com
Apache License 2.0
351 stars 20 forks source link

Add support for display and selecting across multiple columns #119

Closed nazmulidris closed 10 months ago

nazmulidris commented 1 year ago

Context:

Currently only a single column of items Vec<String> is supported. Multiple or single selection is supported.

However, multiple columns are not supported. In addition to providing the max height of the tuify select area, also provide the max number of columns. And allow caret movement not just up and down, but also left and right. Similarly, support multiple selection semantics as well.

This functionality could be added by using flexbox layout manager from r3bl_tui. Here are some links:

e0lithic commented 1 year ago

May I take a shot at it.

nazmulidris commented 1 year ago

@e0lithic This is all yours. Something that might help make this simpler is working on this issue first: https://github.com/r3bl-org/r3bl_rs_utils/issues/118

e0lithic commented 1 year ago

@e0lithic This is all yours. Something that might help make this simpler is working on this issue first: #118

Sure, I will go through #118 first then.

nazmulidris commented 1 year ago

@e0lithic Over the weekend, I will take some more time to elaborate on this issue w/ code examples, etc. Sorry that the description is rather vague

nazmulidris commented 1 year ago

@e0lithic If you have any questions about #118 please let me know as well. We can also chat on discord https://discord.gg/8M2ePAevaM if that is easier.

nazmulidris commented 1 year ago

@e0lithic I will unassign you from this issue since you're added to #118 already 👍🏽

e0lithic commented 1 year ago

Sure