Documentation
¶
Index ¶
- func BindingLabel(binding config.BindingConfig) string
- func MarkOverriddenKeys(groups []ScopeGroup)
- func NormalizeDisplayKey(key string) string
- type Entry
- type Model
- func (m *Model) HandleIntent(intent intents.Intent) (tea.Cmd, bool)
- func (m *Model) Init() tea.Cmd
- func (m *Model) IsEditing() bool
- func (m *Model) IsFocused() bool
- func (m *Model) Scopes() []dispatch.Scope
- func (m *Model) Update(msg tea.Msg) tea.Cmd
- func (m *Model) ViewRect(dl *render.DisplayContext, box layout.Box)
- type ScopeGroup
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindingLabel ¶ added in v0.10.3
func BindingLabel(binding config.BindingConfig) string
func MarkOverriddenKeys ¶ added in v0.10.3
func MarkOverriddenKeys(groups []ScopeGroup)
MarkOverriddenKeys marks entries in outer groups as overridden when an inner group binds the same key label.
func NormalizeDisplayKey ¶ added in v0.10.3
Types ¶
type Entry ¶ added in v0.10.3
Entry is a status-help key entry rendered as "key description".
func BuildFromBindings ¶ added in v0.10.3
func BuildFromBindings( scope keybindings.ScopeName, bindings []config.BindingConfig, ) []Entry
BuildFromBindings returns short-help entries for the given scope.
func BuildFromContinuations ¶ added in v0.10.3
func BuildFromContinuations(continuations []dispatch.Continuation) []Entry
BuildFromContinuations returns sequence continuation entries, sorted for stable display.
func FlatEntries ¶ added in v0.10.3
func FlatEntries(groups []ScopeGroup) []Entry
FlatEntries returns all entries from a slice of groups in order.
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func (*Model) HandleIntent ¶ added in v0.10.3
type ScopeGroup ¶ added in v0.10.3
ScopeGroup is a named group of help entries for a single scope.
func BuildGroupedFromBindings ¶ added in v0.10.3
func BuildGroupedFromBindings( scopes []keybindings.ScopeName, bindings []config.BindingConfig, ) []ScopeGroup
BuildGroupedFromBindings returns help entries grouped by scope.
Click to show internal directories.
Click to hide internal directories.