Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶
func NewContainer ¶
func NewContainer() *Container
func (*Container) InfoHeader ¶ added in v0.4.0
func (*Container) KeyBindings ¶ added in v0.3.0
func (view *Container) KeyBindings() []KeyBinding
type ErrorModal ¶ added in v0.2.0
func NewErrorModal ¶ added in v0.2.0
func NewErrorModal() *ErrorModal
func (*ErrorModal) Name ¶ added in v0.2.0
func (m *ErrorModal) Name() string
func (*ErrorModal) Populate ¶ added in v0.2.0
func (m *ErrorModal) Populate(err error)
type Files ¶ added in v0.3.0
func (*Files) InfoHeader ¶ added in v0.4.0
func (*Files) KeyBindings ¶ added in v0.3.0
func (view *Files) KeyBindings() []KeyBinding
type Header ¶
func (*Header) SetKeyBindings ¶
func (h *Header) SetKeyBindings(bindings []KeyBinding)
SetKeyBindings updates the header display from a slice of KeyBindings. Views with more than 4 bindings are formatted in two columns; others single-column.
type KeyBinding ¶ added in v0.3.0
type KeyBinding struct {
Key tcell.Key // Use tcell.KeyRune for printable characters.
Rune rune // Only meaningful when Key == tcell.KeyRune.
Desc string
}
KeyBinding describes a single key binding for display in the header.
type Log ¶
func (*Log) InfoHeader ¶ added in v0.4.0
func (*Log) KeyBindings ¶ added in v0.3.0
func (view *Log) KeyBindings() []KeyBinding
type Page ¶ added in v0.3.0
type Page interface {
Name() string
KeyBindings() []KeyBinding
InfoHeader() []InfoItem
}
Page is implemented by all body views to expose their name and active key bindings.
Click to show internal directories.
Click to hide internal directories.