Is it possible to use a key.map as defined by 'bubbles/help' as keymap? #183
-
As stated in the title I'm currently wanting to render the 'help' for the Table controlls. I do this via: Is there a way easily to integrate those keybinds into this table? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I could make a PR that enables the KeyMap to rather doable. Since it only requires two things to fullfill this. type KeyMap interface {
// ShortHelp returns a slice of bindings to be displayed in the short
// version of the help. The help bubble will render help in the order in
// which the help items are returned here.
ShortHelp() []key.Binding
// FullHelp returns an extended group of help items, grouped by columns.
// The help bubble will render the help in the order in which the help
// items are returned here.
FullHelp() [][]key.Binding
} I could implement that quickly if it was wished. |
Beta Was this translation helpful? Give feedback.
-
For tracking, moving to #184 |
Beta Was this translation helpful? Give feedback.
For tracking, moving to #184