urbanogilson / lineselect

Interactive Line Selector

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add option for mutually exclusive selection

bonsairobo opened this issue · comments

Would be nice to force users to select a single option instead of an arbitrary subset.

This could generalize to selecting:

  • exactly N options
  • at most N options

That's an interesting idea! To better understand your suggestion and help you implement it, could you please provide an example scenario where this feature would be useful? Having a concrete use case in mind will make it easier to design a solution that meets your needs.

Additionally, if you have any initial thoughts or ideas on how this could be implemented, feel free to share them. We can discuss potential approaches and work together to achieve the desired behavior.

Looking forward to your input!

Sorry I forgot why I wanted this. I don't think it's strictly necessary, but could provide some assurance when building a TUI where only one option can be chosen.

I'm not actively building anything with this yet, but I'm going to try working with it a bit more to see what comes up.