choose with keyboard shortcut #847
Replies: 11 comments
|
I want to add my +1 here. I'm using or some such and type "22" to get to chi rather than scrolling allll the way down, that'd be great! Of course, the "no need for enter" in @SevereOverfl0w's case wouldn't work for my case as if I want #22, it'd go to #2 and be done. Maybe a "more than 9 items means you have to type and press enter"? (Though it still won't stop me from trying to select it with my mouse about once a week!) |
|
This is a great idea @SevereOverfl0w! I agree with @mathomp4, where if the options are > 10 then we should keep a small buffer of the number keys pressed and navigate to that option instead of selecting it.
I believe mouse support is possible with Bubble Tea, this can also be something we add. |
|
+1, this would be very useful. It'd be the alternative for a gum filter but give you more than the current I'm not sure if this approach would work as well for long lists that aren't triggered with a single character, such as @mathomp4's example. I would personally pick up |
|
I'm interested in the use case of explicitly binding keys to a small number of items. I imagine it could look something like this: (not sure what the most appropriate delimiter would be for inputs) |
|
I currently do this with bash scripts, it would be amazing if I could do the same with gum. I hope this feature is added in the future. |
|
this would probably be a |
|
|
|
Hey everyone! This is a nice feature, however I'm going to convert it into a discussion (for further discussion) until we've decided to integrate it. In general, we're aiming to be as thoughtful as possible about increasing Gum's surface area given our internal capacity. As an aside, building a custom menu like this would be relatively trivial in Bubble Tea (the intro tutorial is actually a great starting place). |
|
I made a menu for selecting
|


Uh oh!
There was an error while loading. Please reload this page.
I'd love a way to make "quick menus" with gum where each item corresponds to a keyboard shortcut of some kind for it's selection. This way I could type "a" or "b" or "c" to quickly choose between 3 presented options. On inputting this character (no need to hit enter) it would be selected as the choice.
All reactions