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

Feature: Showing keybinding list in prompt #72

Open
pykenny opened this issue Jan 10, 2024 · 0 comments
Open

Feature: Showing keybinding list in prompt #72

pykenny opened this issue Jan 10, 2024 · 0 comments

Comments

@pykenny
Copy link

pykenny commented Jan 10, 2024

Purpose

Just like some Text-UI applications, it would be useful to provide option to show available keybindings as hint, to tell users how to interact with the question/application.

Conceptual Example

Adds extra line in the output to provide keybinding information about current question. When border is enabled, then the hint can be shown on the bottom border:

? Pick your favourites: (select at least 1)
┌────────────────────────────────────────────────────┐
│  ○ Apple                                           │
│❯ ○ Orange                                          │
│  ○ Pear                                            │
└──────────────[Space]Toggle [Enter]Confirm [q]Exit──┘

Extra lines can be added if terminal width is not enough to show full instructions in single line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant