footer

package
v1.1.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateKeyMapCmd

func UpdateKeyMapCmd(keymap help.KeyMap) tea.Msg

Types

type Footer struct {
	common.Common
	// contains filtered or unexported fields
}

Footer is a Bubble Tea model that displays help and other info.

func New

func New(c common.Common, keymap help.KeyMap) *Footer

New creates a new Footer.

func (*Footer) Height

func (f *Footer) Height() int

Height returns the height of the footer.

func (*Footer) Init

func (f *Footer) Init() tea.Cmd

Init implements tea.Model.

func (*Footer) SetKeyMap

func (f *Footer) SetKeyMap(keymap help.KeyMap)

func (*Footer) SetShowAll

func (f *Footer) SetShowAll(show bool)

SetShowAll sets whether the full help is shown.

func (*Footer) SetSize

func (f *Footer) SetSize(width, height int)

SetSize implements common.Component.

func (*Footer) ShowAll

func (f *Footer) ShowAll() bool

ShowAll returns whether the full help is shown.

func (*Footer) Update

func (f *Footer) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update implements tea.Model.

func (*Footer) View

func (f *Footer) View() string

View implements tea.Model.

type ToggleFooterMsg

type ToggleFooterMsg struct{}

ToggleFooterMsg is a message sent to show/hide the footer.

type UpdateKeyMapMsg

type UpdateKeyMapMsg help.KeyMap

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL