Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider adding a Spacer (or "separator") to Options, cursor should be jumping over it like there's no tomorrow #441

Open
rusq opened this issue Oct 25, 2024 · 0 comments
Labels
enhancement New feature or request select

Comments

@rusq
Copy link

rusq commented Oct 25, 2024

Is your feature request related to a problem? Please describe.
Would be great to have the ability to add a spacer to the Options, i.e.:

image

Describe the solution you'd like
I'd like to be able to add a menu (options) separator, which wouldn't be highlighted by cursor. Cursor should jump over it, pretty much the same behaviour as the usual drop-down OS menus, i.e.

image

Describe alternatives you've considered
Right now, I'm just adding a strings.Repeat, with an empty option value, and when processing, I ignore it, but that presents an inconvenience to a "hypothetical" user. In the first image, it would take only two keypresses to reach the "Exit" Option from "Run" Option, but currently, it takes three.

The other alternative is not to include spacer, which hinders the UX, in my opinion.

Additional context
Maybe I should be writing custom bubbles for my needs, but huh is just so convenient!

And maybe I'm missing something.

Thank you for consideration.

@caarlos0 caarlos0 added enhancement New feature or request select labels Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request select
Projects
None yet
Development

No branches or pull requests

2 participants