Versions in this module Expand all Collapse all v1 v1.0.2 Sep 28, 2025 Changes in this version + func SetDefaultStyle(style Style) v1.0.1 Jul 19, 2025 Changes in this version + func SwitchToPreviousContext() v1.0.0 Jul 13, 2025 Changes in this version + var Contexts map[KeymapContext]*Keymap + var CurrentContext KeymapContext + var ShowAll bool + func Init() + func IsKeybindVisible(keybind key.Binding) bool + func RegisterContext(context KeymapContext, keymap *Keymap) + func SetKeybindVisible(keybind key.Binding, visible bool) + func SwitchContext(context KeymapContext) + func UpdateKeybindHelpDesc(keybind key.Binding, desc string) + func View(width int) string + func ViewAll(keymap *Keymap, width int) string + func ViewEssential(keymap *Keymap, width int) string + type Key struct + Binding key.Binding + CustomHelpDesc string + Essential bool + Visible bool + func (k *Key) GetHelpDesc() string + type Keymap struct + Bindings []Key + ShowAllColumnCount int + Style Style + func GetCurrentContextKeymap() *Keymap + func NewKeymap(showAllColCount int) *Keymap + func (k *Keymap) AllBindings() []Key + func (k *Keymap) EssentialBindings() []Key + func (k *Keymap) NewKeyBinding(binding key.Binding, essential bool) + func (k *Keymap) Reset() + func (k *Keymap) SetHelpDesc(keybind key.Binding, desc string) + type KeymapContext string + type Style struct + EssentialColSeparator lipgloss.Style + EssentialColSeparatorValue string + EssentialKey lipgloss.Style + EssentialKeyDescription lipgloss.Style + EssentialKeySeparator lipgloss.Style + EssentialKeySeparatorValue string + FullColSeparator lipgloss.Style + FullColSeparatorValue string + FullKey lipgloss.Style + FullKeyDescription lipgloss.Style + FullKeySeparator lipgloss.Style + FullKeySeparatorValue string