Replies: 10 comments 1 reply
-
|
Date and File selects are definitely on the roadmap (no eta yet). I'm curious what you expect checkboxes to look like? Perhaps they can be tweaked by the theme to get the style you want on a multi-select list. Maybe we can implement this as an alternative view on integer/float/string/bool lists should be implemented on select and multi-selects by simply changing the generic type: see the the following example (which uses a custom enum and can be swapped for any type) https://github.com/charmbracelet/huh/blob/main/examples/burger/main.go#L106-L112 |
Beta Was this translation helpful? Give feedback.
-
|
good idea on doing checkboxes with a multiselect list! The lists I am talking about are dynamic, in that people can enter say, product ids, or a list of prices. I am using these forms mostly as search forms for ecommerce queries right now. |
Beta Was this translation helpful? Give feedback.
-
|
I think we can consider adding lists as well, for now I would highly recommend using a I think the UX of a list could be quite better since then you could dynamically display them and validate each item so we can consider adding it, it would also make editing for the user easier as they could delete items very easily. |
Beta Was this translation helpful? Give feedback.
-
|
Yeah, that is a good first option, and I am not sure yet either what widget would work for me. Anyway, it's easy to add fields in my own package, it'll give you an opportunity to pick and choose. |
Beta Was this translation helpful? Give feedback.
-
|
Also it would be nice to have "select" that operates like the confirm. with the buttons. |
Beta Was this translation helpful? Give feedback.
-
We've added an |
Beta Was this translation helpful? Give feedback.
-
|
Just an update on this issue, |
Beta Was this translation helpful? Give feedback.
-
|
Does it allow multiple files to be selected? |
Beta Was this translation helpful? Give feedback.
-
|
@cshintov It looks like the |
Beta Was this translation helpful? Give feedback.
-
|
Hey @wesen, thank you so much for wanting to make this project better! I've converted this to a discussion so we can talk through it and keep our backlog clear. If it does end up being something we want to add, we'll promote it back to an issue when we are ready to work on it. If we commit to this feature, that's a feature we will need to maintain for the lifespan of this project. So, since "Yes is forever", we are carefully considering new features. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a framework to describe application's input parameters in YAML, and use that to generate CLI flags/REST endpoints/HTML forms and much more, and I was about to write a TUI widget to render them with bubbletea. Here are a list of the widgets I need to build to support my tool:
I was wondering if you had any plans to implement these (and thus a design in mind), or if I should just go ahead and build my own and keep them say, in a separate library?
Here's a proof of concept: https://asciinema.org/a/ndG2OO2XqjYtenE5x9LYLRKvh
Here's my framework: https://github.com/go-go-golems/glazed
Beta Was this translation helpful? Give feedback.
All reactions