gum icon indicating copy to clipboard operation
gum copied to clipboard

choose & filter to support display of multiple lines per item

Open keevan opened this issue 3 years ago • 2 comments

Is your feature request related to a problem? Please describe. I think it would be good to display choices, with supplementary text underneath (like a description)

Describe the solution you'd like Something like this: image

Describe alternatives you've considered I didn't look into it too deeply, but as soft serve supports it (git.charm.sh), it might be something that could be added potentially

Additional context Configuring it for display is probably something that could be tricky. There are various ways it can be done, and I'm not sure at this stage. The content is likely going to come in as structured data (csv/json/etc), but display in row blocks instead of like a table. So perhaps it could be similar to gum table.

The content chosen/filtered could return all the row data by default, and the caller would need to pick the line with the content they want. If it comes through as structured, it might be good to specify the output field (column or row depending how you might look at it), so this exercise doesn't need to happen, and would then support "multi-line" descriptions potentially as well.

keevan avatar Nov 02 '22 01:11 keevan

That's a very good idea! @meowgorithm he meant that the gum table can be displayed like the glow layout when you type in the command glow

olivertzeng avatar Jan 06 '23 11:01 olivertzeng