Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Formatter ¶
type Formatter struct {
// contains filtered or unexported fields
}
Formatter provides methods to format keybinding hints for UI display
func NewFormatter ¶
func NewFormatter(registry KeyRegistry) *Formatter
NewFormatter creates a new key hint formatter with a registry
func (*Formatter) GetKeyHint ¶
GetKeyHint returns a formatted hint string for a given action ID Format: "Press <key> to <action>" Example: "Press ctrl+o to expand" or "Press esc to cancel"
func (*Formatter) GetKeyOnly ¶
GetKeyOnly returns just the key binding without "Press" or action verb Useful for inline hints like "ctrl+o"
type KeyRegistry ¶
KeyRegistry provides access to registered key actions
Click to show internal directories.
Click to hide internal directories.