viewport

package
v0.0.0-...-674ef51 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackMsg

type BackMsg struct{}

type KeyMap

type KeyMap struct {
	// Viewport is the original viewport KeyMap
	Viewport *viewport.KeyMap

	Copy,
	GoTop,
	GoBottom,
	Back key.Binding
}

KeyMap implements help.KeyMap.

func (KeyMap) FullHelp

func (k KeyMap) FullHelp() [][]key.Binding

FullHelp implements help.keyMap.

func (KeyMap) ShortHelp

func (k KeyMap) ShortHelp() []key.Binding

ShortHelp implements help.keyMap.

type Model

type Model struct {
	viewport.Model

	KeyMap KeyMap
	// contains filtered or unexported fields
}

func New

func New() *Model

func (*Model) Color

func (m *Model) Color() lipgloss.Color

func (*Model) Init

func (m *Model) Init() tea.Cmd

func (*Model) Resize

func (m *Model) Resize(width, height int) tea.Cmd

func (*Model) SetContent

func (m *Model) SetContent(content string)

func (*Model) SetData

func (m *Model) SetData(title, content string, color lipgloss.Color)

func (*Model) Status

func (s *Model) Status() string

func (*Model) Title

func (m *Model) Title() string

func (*Model) Update

func (m *Model) Update(msg tea.Msg) tea.Cmd

func (*Model) View

func (m *Model) View() string

type NotificationMsg

type NotificationMsg struct {
	Message string
}

Jump to

Keyboard shortcuts

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