keybar

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package keybar renders keybinding hints at the bottom of the app.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	// contains filtered or unexported fields
}

Model renders keybinding hints.

func New

func New(theme styles.Theme, scope log.Scope) *Model

New creates a new keybar.

func (*Model) Height

func (m *Model) Height() int

Height returns the rendered height of the keybar.

func (*Model) SetKeyBindings

func (m *Model) SetKeyBindings(bindings []key.Binding)

SetKeyBindings sets the key bindings to display.

func (*Model) SetWidth

func (m *Model) SetWidth(width int)

SetWidth sets the keybar width.

func (*Model) View

func (m *Model) View() string

View renders the keybar.

Jump to

Keyboard shortcuts

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